Ticket #1746 (reopened bug)

Opened 2 years ago

Last modified 12 months ago

Default swap file size doesn't enable Virtual Memory

Reported by: andreasf Owned by: axeld
Priority: normal Milestone: R1
Component: Preferences/VirtualMemory Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Platform: x86
Blocking:

Description

The VM preferences say I have 511.93 MB Physical Memory, setting the default Requested Swap File Size to 511 MB. With this default setting, Virtual Memory is disabled on reboot. Setting it to >= 512 MB works.

Seems like a rounding problem?

Change History

  Changed 2 years ago by axeld

I dunno what makes it work when setting it to a value over 512 MB, but virtual memory should never be enabled right now, since it's just not implemented yet :-)

  Changed 2 years ago by stippi

IIRC, Haiku does not really have support for paging out to a swap file, yet. Or does it? But that's a side note. The misbehavior you observed sounds still like a bug.

follow-up: ↓ 7   Changed 21 months ago by idefix

It's not a rounding problem.

When you open the VirtualMemory application for the first time and only check the 'Enable Virtual Memory'-box (do not move the slider), the application will create (on close) a 'virtual_memory'-file with the following contents:

vm on
swap_size 0

The next time you open VirtualMemory, it will interpret this as Virtual Memory disabled.

  Changed 21 months ago by idefix

  • type changed from enhancement to bug

  Changed 12 months ago by mmadia

Any updates on this?

  Changed 12 months ago by axeld

  • status changed from new to closed
  • resolution set to fixed

Yes, I guess this has been fixed in the mean time, thanks for the note.

in reply to: ↑ 3   Changed 12 months ago by idefix

  • status changed from closed to reopened
  • resolution fixed deleted

The bug is still there, only this time the default Requested Swap File Size is 1 MB.

See my previous comment for the cause of this bug. (The VirtualMemory application will only create a correct 'virtual_memory'-file when you have moved the slider with the mouse.)

Note: See TracTickets for help on using tickets.