[haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space
- From: "axeld" <trac@xxxxxxxxxxxx>
- Date: Thu, 30 Aug 2012 20:44:58 -0000
#7742: SWAP file constantly recreated, takes up alot of space
-----------------------------------------+----------------------------
Reporter: Cypress | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Preferences/VirtualMemory | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
-----------------------------------------+----------------------------
Comment (by axeld):
I'm not fond of the suggested solution. First of all, the swap file should
be enabled by default as Ryan pointed out when there is no settings file.
Second of all, it makes no sense to have a settings file by default, as
the size of RAM, and available HD space are not constants. Also, the
kernel should not create a settings file for the same reason: move the
installation to a new system, and the same heuristic should determine the
best swap file size, instead of using whatever else was good at some other
point in time (unless the user changes the setting, that is).
The best solution is to have a syscall that returns the current swap file
configuration (if there isn't already), and have VirtualMemory always show
this. When you change the settings, it will create a settings file that is
then honoured by the kernel on the next boot. VirtualMemory should
probably have a setting "automatic" which is the default in which case it
would delete the settings file.
--
Ticket URL: <http://dev.haiku-os.org/ticket/7742#comment:7>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
Other related posts:
- » [haiku-bugs] [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- Cypress
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- mmlr
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- leavengood
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space - axeld
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- axeld
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- axeld
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- axeld
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5
- » [haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space- kallisti5