Re: extremely slow disk access due to mremap?

From: Diego Calleja
Date: Fri Aug 26 2005 - 11:27:33 EST


El Fri, 26 Aug 2005 17:09:58 +0200,
Justin Heesemann <jh@xxxxxxxxxx> 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?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/