mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Diego Calleja <diegocg@gmail.com>
To: Justin Heesemann <jh@ionium.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: extremely slow disk access due to mremap?
Date: Fri, 26 Aug 2005 18:27:03 +0200	[thread overview]
Message-ID: <20050826182703.9c0217f3.diegocg@gmail.com> (raw)
In-Reply-To: <200508261709.58671.jh@ionium.org>

El Fri, 26 Aug 2005 17:09:58 +0200,
Justin Heesemann <jh@ionium.org> escribió:

> finally i found a good reproducable way to test this behavior:
> 
> # time grep ^....$ /usr/share/dict/words > /dev/null
> 
> real    0m7.728s
> user    0m7.713s
> sys     0m0.011s

The problem seems (IMO) to be in userspace, your software seems to be doing
too much stuff for no good reason. If grep calls mremap() too many times
that's their problem; and even if it's doing that, the kernel is doing the
mremap() stuff quite fast

> the funny thing is: if i don't grep for a regexp, it's working fine:
> # grep asdf /usr/share/dict/words
[...]
> since right now i'm out of ideas what to look for next, could you please 
> help me?

Maybe a bug in the regexp code in your /bin/grep? Are you using
different distro/versions in your two boxes?


      reply	other threads:[~2005-08-26 16:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-26 15:09 Justin Heesemann
2005-08-26 16:27 ` Diego Calleja [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=20050826182703.9c0217f3.diegocg@gmail.com \
    --to=diegocg@gmail.com \
    --cc=jh@ionium.org \
    --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®