Re: Posix Shared Mem patch
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>, Andres Freund <andres@2ndquadrant.com>, pgsql-hackers@postgresql.org, Thom Brown <thom@linux.com>, Josh Berkus <josh@agliodbs.com>
Date: 2012-06-28T18:51:20Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > I tried this. At least on my fairly vanilla MacOS X desktop, an mlock > for a larger amount of memory than was conveniently on hand (4GB, on a > 4GB box) neither succeeded nor failed in a timely fashion but instead > progressively hung the machine, apparently trying to progressively > push every available page out to swap. After 5 minutes or so I could > no longer move the mouse. After about 20 minutes I gave up and hit > the reset button. So there's apparently no value to this as a > diagnostic tool, at least on this platform. Fun. I wonder if other BSDen are as brain-dead as OSX on this point. It'd probably at least be worth filing a bug report with Apple about it. regards, tom lane