[haiku-bugs] Re: [Haiku] #7742: SWAP file constantly recreated, takes up alot of space

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Fri, 31 Aug 2012 19:06:23 -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 kallisti5):

 > I'm not fond of the suggested solution.

 One thing to consider here is non-iso based (usb stick, hdd)
 installations... the Haiku boot partition generally has very little space
 available, so a small (ex. 64-128MB) swap file may result in a near 0 free
 space situation.

 >First of all, the swap file should be enabled by default as Ryan pointed
 out when there is no settings file.

 How likely is it that a user will need the swap file on first boot? I can
 only see edge cases where users would need a swap file on first boot if
 they had less than 512MB ram.

 With SSD's and other flash memory becoming more common, swap space is
 generally frowned upon. (not that it's a bad thing at all, an in-use
 system should have swap "just-in case")

 > Second of all, it makes no sense to have a settings file by default.

 This was to give users an example swap file size (ex, the preflet shows
 the swap set to 128MB, and the swap file disabled)


 To be honest, it really doesn't matter to me how it's implemented... I was
 just trying to get a solution to a problem that in was R1A3 complete
 before R1A4. We can take into account a ton of different metrics here,
 however the more metrics we check the more likely bugs will be :)

 This doesn't have to be the final solution, just a solution in the short
 term.

 Either way, I won't commit anything like this without some level of
 agreeance :P

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7742#comment:9>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: