Ticket #1746 (new bug)

Opened 7 months ago

Last modified 2 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 development
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 7 months 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 7 months 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.

Changed 2 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 2 months ago by idefix

  • type changed from enhancement to bug
Note: See TracTickets for help on using tickets.