mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* how to avoid low memory situation
@ 2004-03-30 17:01 Eli Cohen
  2004-03-30 17:16 ` Arjan van de Ven
  0 siblings, 1 reply; 2+ messages in thread
From: Eli Cohen @ 2004-03-30 17:01 UTC (permalink / raw)
  To: kernel mailing list

Hi,
Our driver is locking user space memory by calling sys_mlock() while the 
processes are ordinary processes without root priviliges. However it 
happens that the system has low memory since there have been many 
processes that locked memory and another attempt to lock memory brings 
the system to a state in which it struggles to find some free pages and 
the system becomes none responsive. Checking just the amount of free 
pages just before attempting to lock is not so good since there may be a 
lot of pages used by various caches which could be reduced thus allowing 
to lock memory. I am seeking a method in which I can forsee if another 
attempt to lock memory will bring me to such a condition and thus avoid it.

thanks for any help
Eli

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-30 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-30 17:01 how to avoid low memory situation Eli Cohen
2004-03-30 17:16 ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®