linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Schwartz <davids@webmaster.com>
To: <mcmanus@ducksong.com>, <linux-kernel@vger.kernel.org>
Subject: Re: Memory Measurements and Lots of Files and Inodes
Date: Fri, 13 Dec 2002 00:39:27 -0800	[thread overview]
Message-ID: <20021213083926.AAA29353@shell.webmaster.com@whenever> (raw)
In-Reply-To: <20021211235258.GA10857@ducksong.com>


>Can anybody provide a better metric for "ram free for userspace
>allocations"?

	This is a constant battle for programmers trying to develop sophisticated 
applications for sophisticated operating systems.

	If all of the applications are cooperating, you can do it fairly easily. 
First, ask the kernel how much physical memory there is. Then fudge a 
reduction based on kernel usage. Then subtract the amount of RAM each 
application is 'really using' by asking it.

	If you write all the applications, this isn't hard to do. If you have to 
cooperate with other applications you didn't write, things get trickier. If 
you're the only application, things are really easy.

	There are any number of heuristics and guesstimates. Ultimately, I recommend 
mostly leaving your memory usage user-configurable.

	DS



      parent reply	other threads:[~2002-12-13  8:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 23:52 Memory Measurements and Lots of Files and Inodes Patrick R. McManus
2002-12-12  0:09 ` Andrew Morton
2002-12-12  0:21   ` Patrick R. McManus
2002-12-12  0:27     ` Andrew Morton
2002-12-13  8:39 ` David Schwartz [this message]

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=20021213083926.AAA29353@shell.webmaster.com@whenever \
    --to=davids@webmaster.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcmanus@ducksong.com \
    /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;
as well as URLs for NNTP newsgroup(s).