mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Robin Holt <holt@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Large memory application exhuasts buffers during write.
Date: Fri, 26 Mar 2004 10:57:35 +0000	[thread overview]
Message-ID: <20040326105735.A4613@infradead.org> (raw)
In-Reply-To: <20040326012056.GB19152@lnx-holt>; from holt@sgi.com on Thu, Mar 25, 2004 at 07:20:56PM -0600

On Thu, Mar 25, 2004 at 07:20:56PM -0600, Robin Holt wrote:
> This is a 2.4 based kernel with many of the redhat patches applied.
> Before the application is started, there is approx 350GB of memory
> free according to top.  When the app starts, it mallocs a 300GB
> buffer, initializes it, does computations into it, and then starts
> to write it to a disk file.
> 
> What we see happen is the first approx 30GBs gets written and then
> swap starts getting utilized.  Once swap has been heavily utilized,
> the OOM killer kicks in and kills the job.

Buffered writes or O_DIRECT?  I guess you're doing the former and
actually want the latter.  Try preloading a tiny library stub that
adds O_DIRECT to open for the interesting fds.


  parent reply	other threads:[~2004-03-26 10:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-26  1:20 Robin Holt
2004-03-26 10:47 ` Denis Vlasenko
2004-03-26 10:49   ` Robin Holt
2004-03-26 10:57 ` Christoph Hellwig [this message]
2004-03-26 14:09 ` John Stoffel
     [not found] <5F0021EEA434D511BE7300D0B7B6AB530EE480BB@mail2.ggn.hcltech.com>
2004-03-26 11:16 ` Christoph Hellwig

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=20040326105735.A4613@infradead.org \
    --to=hch@infradead.org \
    --cc=holt@sgi.com \
    --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®