2003-03-18 18:59:05

by Lars R. Damerow

[permalink] [raw]
Subject: Problem: high CPU usage during unmount

Hello, folks!

In all kernel versions I've tried, including 2.4.20, I'm seeing very high CPU
usage (typically 99%) while my system unmounts a large number of mounts. All of
this CPU time appears to be used by the kernel's umount() call.

The slowdown seriously affects the system's interactivity, and its duration
depends on the number of umounts the system has to do. For 79 mounts, it lasts
about 16.5 seconds.

I wrote a shell script that calls umount for each of these 79 mounts in a for
loop, and running it through time shows it to take 15.6 seconds of system time
with 95% CPU consumed.

While this typically happens through amd-managed NFS mounts, I've found that it
also happens with loopback mounts.

Does this sound familiar to anyone, and if so, is there anything I can do to
stop it? I can produce more debugging information if that would be useful.

Please CC me on any responses. Thanks very much for your time!
-lars

___________________________________________________________
lars damerow
button pusher
pixar animation studios
[email protected]

I want to raise my freak flag higher and higher and
I want to raise my freak flag and never be alone... -tmbg