groupadd, useradd, etc

Bill Gradwohl bill at ycc.com
Thu Feb 17 14:48:06 UTC 2005


Mogens Kjaer wrote:

> Can you run
> strace groupadd xyz
> and get an idea what takes so long time?

I ran:
strace groupadd xyz 2>straceout

I looked at the file straceout and then did:
grep -v mremap straceout >noremap

root at s2 ~# ll straceout noremap
-rw-r--r--  1 root root   6281700 Feb 17 08:40 noremap
-rw-r--r--  1 root root 169173793 Feb 17 08:31 straceout

The straceout file is chock full of these lines where the center 
numerics change every so often:
mremap(0xb7d87000, 147456, 147456, MREMAP_MAYMOVE) = 0xb7d87000
mremap(0xb7d87000, 147456, 147456, MREMAP_MAYMOVE) = 0xb7d87000
mremap(0xb7d87000, 147456, 147456, MREMAP_MAYMOVE) = 0xb7d87000
mremap(0xb7d87000, 147456, 147456, MREMAP_MAYMOVE) = 0xb7d87000
mremap(0xb7d87000, 147456, 147456, MREMAP_MAYMOVE) = 0xb7d87000
mremap(0xb7d87000, 147456, 147456, MREMAP_MAYMOVE) = 0xb7d87000
mremap(0xb7d87000, 147456, 147456, MREMAP_MAYMOVE) = 0xb7d87000
mremap(0xb7d87000, 147456, 147456, MREMAP_MAYMOVE) = 0xb7d87000

The difference in size between straceout and noremap is how much mremap 
output there is.

Is this remaping RAM?

-- 
Bill Gradwohl
bill at ycc.com
http://www.ycc.com
spamSTOMPER Protected email




More information about the fedora-list mailing list