Re: groupadd, useradd, etc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 16 Feb 2005 20:34:13 -0600
Bill Gradwohl <bill@xxxxxxx> wrote:

> More info:
> 
> Heres a top immediately before a groupadd command:
> top - 20:24:55 up 1 day,  3:25,  3 users,  load average: 0.93, 1.23, 1.25
> Tasks:  51 total,   2 running,  49 sleeping,   0 stopped,   0 zombie
> Cpu(s):  0.0% us,  0.0% sy,  0.0% ni, 99.3% id,  0.7% wa,  0.0% hi,  0.0% si
> Mem:   1035980k total,    25784k used,  1010196k free,     1136k buffers
> Swap:  2032212k total,    14804k used,  2017408k free,     4312k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  6173 root      16   0  2904  580  432 R  0.3  0.1   0:00.46 top
>     1 root      16   0  3032   88   68 S  0.0  0.0   0:01.02 init
>     2 root      34  19     0    0    0 S  0.0  0.0   0:02.66 ksoftirqd/0
>     3 root       5 -10     0    0    0 S  0.0  0.0   0:00.13 events/0
>     4 root       5 -10     0    0    0 S  0.0  0.0   0:00.01 khelper
>    16 root      15 -10     0    0    0 S  0.0  0.0   0:00.00 kacpid
>   113 root       5 -10     0    0    0 S  0.0  0.0   0:25.66 kblockd/0
>   178 root      12 -10     0    0    0 S  0.0  0.0   0:00.00 aio/0
> 
> Heres the top while groupadd is running, about 30 seconds into it:
> top - 20:25:33 up 1 day,  3:26,  3 users,  load average: 1.19, 1.24, 1.25
> Tasks:  52 total,   3 running,  49 sleeping,   0 stopped,   0 zombie
> Cpu(s): 23.0% us,  9.0% sy,  0.0% ni,  0.0% id, 67.7% wa,  0.3% hi,  0.0% si
> Mem:   1035980k total,  1030268k used,     5712k free,     1168k buffers
> Swap:  2032212k total,   259104k used,  1773108k free,    16236k cached
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  6181 root      18   0 1205m 959m  116 R 31.1 94.8   0:14.26 groupadd
>   177 root      15   0     0    0    0 D  1.0  0.0   4:04.83 kswapd0
>  6175 root      15   0     0    0    0 S  0.3  0.0   0:00.03 pdflush
>     1 root      16   0  3032   88   68 S  0.0  0.0   0:01.02 init
>     2 root      34  19     0    0    0 S  0.0  0.0   0:02.66 ksoftirqd/0
>     3 root       5 -10     0    0    0 S  0.0  0.0   0:00.13 events/0
>     4 root       5 -10     0    0    0 S  0.0  0.0   0:00.01 khelper
>    16 root      15 -10     0    0    0 S  0.0  0.0   0:00.00 kacpid
>   113 root       5 -10     0    0    0 S  0.0  0.0   0:25.66 kblockd/0
> 
> 
> Here's the time output:
> root@s2 ~# time groupadd docers
> 
> real    3m21.632s
> user    0m27.710s
> sys     0m9.414s
> 
> 
> All of the group* and user* utilities take roughly 3 1/4 minutes to 
> complete. The only users loged in are my ssh session. Check out the 
> memory used during the groupadd. This is on a new P4 @ 2.6ghz
> 
> Everything else on the box appears to be normal.
> 
> -- 
> Bill Gradwohl
> bill@xxxxxxx
> http://www.ycc.com
> spamSTOMPER Protected email
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

Here is my top without groupadd:

top - 09:36:20 up 16 min,  3 users,  load average: 0.90, 0.94, 0.63
Tasks:  99 total,   1 running,  98 sleeping,   0 stopped,   0 zombie
Cpu(s): 58.5% us, 11.6% sy,  0.7% ni, 27.9% id,  1.3% wa,  0.0% hi,  0.0% si
Mem:    256136k total,   244044k used,    12092k free,     5460k buffers
Swap:   522104k total,    47292k used,   474812k free,    41020k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4547 rmiles    16   0 28724  24m 2760 S 15.6  9.7   0:06.71 spamd
 4548 root      16   0 28376  23m 2736 S 10.6  9.5   0:05.70 spamd
 5307 rmiles    15   0 39108 9444 7412 S  3.7  3.7   0:06.50 gnome-terminal
 5118 root      15   0  164m  19m 4352 S  3.3  7.7   0:30.23 X
 5246 rmiles    15   0 10260 3920 3188 S  3.0  1.5   0:24.34 at-spi-registry
 5387 rmiles    16   0 20812 9016 7040 S  2.0  3.5   0:19.66 geyes_applet2
 5297 rmiles    16   0 45260  12m 8984 S  1.7  4.8   0:03.81 nautilus
 5303 rmiles    16   0 30028 6036 5076 S  1.7  2.4   0:12.29 gkrellm
 5305 rmiles    25  10 34972  16m 8652 S  1.0  6.4   0:08.62 rhn-applet-gui
 5398 rmiles    16   0 22292 8636 7176 S  1.0  3.4   0:03.81 clock-applet
 5513 rmiles    15   0  5500 2008 1628 S  0.3  0.8   0:00.44 fetchmail
    1 root      16   0  1840  560  480 S  0.0  0.2   0:01.04 init
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    3 root       5 -10     0    0    0 S  0.0  0.0   0:00.23 events/0
    4 root       8 -10     0    0    0 S  0.0  0.0   0:00.03 khelper
   16 root      14 -10     0    0    0 S  0.0  0.0   0:00.00 kacpid
   90 root       5 -10     0    0    0 S  0.0  0.0   0:00.23 kblockd/0

Here is my timing of groupadd:
[root@localhost ~]# time groupadd docers

real    0m0.157s
user    0m0.007s
sys     0m0.007s

As you can see it's so fast I didn't have time to do a top
while it was running.

Something definitely looks wrong on your system. The only thing different on my 
system is I wasn't running ssh.

Could something have compromised your groupadd command? Script kiddie
or something?

-- 
Richard E Miles
Federal Way WA. USA
registered linux user 46097


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux