|
Posted by
philou
on
Friday, March 7. 2008
at
18:27
Disable Swapping in Mac OS X - Quick Update
I'm running my new dynamic_pager during last 3 days, I've not noticed any bad side effects : here is my vm_stats output after 20hours uptime, heavy memory and disk usage : The kernel does not writes pages to the swap anymore (0 pageouts). The amount of inactive memory used is exceptionnally low for such a high amount of active memory (1312Mb active, 229Mb inactive). The single swap file of 64Mb is not used : I'm owning my Macbook Pro since december 2006 and I only seen this right after a reboot of the system. I'm not sure everything described above are the result of my dynamic_pager hack, but it damn works !
Comments (6)
:: Trackbacks (0)
Comments
Display comments as
(Linear | Threaded)
you should try to create a program that allocates the whole memory and see what happenso
something like (python) class foo: string="JUST A STRING" list =[] while 1: list.append(foo())
With the hacked dynamic_pager, you do not want to do that
Allocating the whole memory freezes the system as the xnu kernel does not handle out of memory error (yeah that's the worst piece of crap I ever seen) it always try to tell dynamic_pager to allocate more swap... I do not have the need to run python script to see that, running some fat buggy applications like Adobe Photoshop hangs the mac. Anyway, I will never go back on this, hacking dynamic_pager just make the mac usable !
well .. and so what's the difference between your hacked dynamic pager, and removing it at all?
I've seen a strange thing happening when removing the dynamic_pager executable from the filesystem : my mac has 2Gb of ram installed in the system, and only 1gb the ram was really used. I was not able to go beyond this limit. That's why I've hacked this piece of software.
I'm guessing it was random.
I'm using a macbook and i moved dynamic_pager away. The system works and uses whole memory (2 gigs). My problem is the hanging. I'd prefer an app closing with an "out of memory" error. |
QuicksearchCategoriesSyndicate This Blog |
Powered by s9y
