mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Larry Auton <lkml@winux.com>
To: linux-kernel@vger.kernel.org
Subject: direct i/o problem with 2.4.20 and 2.4.21rc7
Date: Sat, 14 Jun 2003 14:18:47 -0400	[thread overview]
Message-ID: <16107.26375.67524.817817@nv.winux.com> (raw)

I have an application that requires direct i/o to thousands of files.
On 2.4.19 the open's would eventually fail (at around 7200 files).
On 2.4.20 and 2.4.21rc7 the machine hangs.

Here's a sample program to do the deed:

    wget http://www.skarven.net/lda/crashme.c
    cc -o crashme crashme.c	# compile it
    ./crashme 4000		# OK
    ./crashme 9999		# CRASH

It's a little obfuscated to eliminate the need for root privileges to
mess with rlimit. It simply opens a bunch of files with O_DIRECT and,
when enough files are open, the system will hang.

The system hangs when '/proc/slabinfo' reports that 'kiobuf' reaches 
just over 7230 active objects. I don't believe that this problem is
specific to any particular file system as the failure occurs when
using both ext2 and reiserfs.

Larry Auton

                 reply	other threads:[~2003-06-14 18:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=16107.26375.67524.817817@nv.winux.com \
    --to=lkml@winux.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®