From: Eli Cohen <mlxk@mellanox.co.il>
To: kernel mailing list <linux-kernel@vger.kernel.org>
Subject: how to avoid low memory situation
Date: Tue, 30 Mar 2004 19:01:16 +0200 [thread overview]
Message-ID: <4069A7DC.4060107@mellanox.co.il> (raw)
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
next reply other threads:[~2004-03-30 17:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-30 17:01 Eli Cohen [this message]
2004-03-30 17:16 ` Arjan van de Ven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4069A7DC.4060107@mellanox.co.il \
--to=mlxk@mellanox.co.il \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®