* Arbitrary mlock() half-memory limit.
@ 2003-03-21 9:51 Mark J Roberts
0 siblings, 0 replies; only message in thread
From: Mark J Roberts @ 2003-03-21 9:51 UTC (permalink / raw)
To: linux-kernel
/* we may lock at most half of physical memory... */
/* (this check is pretty bogus, but doesn't hurt) */
if (locked > num_physpages/2)
goto out;
I've been running fluidsynth (a synthesizer program) with 700-900MB
instrument sample files on a box with 1GB of memory. It tries to
lock the samples into memory and fails.
This isn't a problem for me, since I don't have swap configured and
the sample data is anonymous-backed, but it's a case in which the
arbitrary limit is clearly pernicious.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-21 9:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-21 9:51 Arbitrary mlock() half-memory limit Mark J Roberts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox