linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Clausen <clausen@gnu.org>
To: linux-mm@kvack.org
Cc: parted@gnu.org
Subject: How much to malloc(), without running into swap...?
Date: Sat, 06 May 2000 20:15:32 +1000	[thread overview]
Message-ID: <3913F0C4.D546D155@gnu.org> (raw)

Hi all, (please cc me)

I'm hacking GNU Parted, which can (amongst other things) resize
file systems.  It's performance is GREATLY improved if large
disk buffers are used, provided it doesn't need to swap to access
the buffers ;-)

So, how can I maximize the buffer sizes, without running into
swap?  Note: I don't want to disable swap, because a certain
(large) minimum is required for storing metadata, etc., so
low-memory machines might want to use a swap (despite it being
slow).

So, I want to know:
(a) how much I can malloc() without swapping
(b) how much I can malloc() with swapping

Also, I presume all IO is going to have to go through the buffer
cache, etc., so having a larger buffers means more consumption
on the kernel side of things.  OTOH, it can probably kick out
old cached data fairly quickly (i.e. data used by other programs)
Any ideas on how to do the calc's?

BTW, is /proc/meminfo a good idea?

Thanks!
Andrew Clausen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

             reply	other threads:[~2000-05-06 10:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-06 10:15 Andrew Clausen [this message]
2000-05-09 15:36 ` Benjamin C.R. LaHaise
2000-05-09  8:01   ` Andrew Clausen

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=3913F0C4.D546D155@gnu.org \
    --to=clausen@gnu.org \
    --cc=linux-mm@kvack.org \
    --cc=parted@gnu.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