This is an artifact of Linux's thread implementation.

man 2 clone


Also it's not using -that- much memory. Note the SHARE (for memory
shared between processes) column.


It's not pretty, but it's totally harmless.

NOTE: There's always -some- weirdness that goes on with threads
implementations between different systems. On Linux, this is it.

-M

On Tue, Apr 23, 2002 at 11:51:49AM +0800, Patrick Hsieh wrote:
> I have 38 mysqld processes running in one single machine, is it normal?
> 
>  11:48:43 up 49 days, 15:11, 34 users,  load average: 0.02, 0.06, 0.00
> 275 processes: 265 sleeping, 1 running, 9 zombie, 0 stopped
> CPU states:   3.2% user,   4.3% system,   0.0% nice,  92.5% idle
> Mem:    900464K total,   840808K used,    59656K free,   277532K buffers
> Swap:   498004K total,   327808K used,   170196K free,   221132K cached
> 
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
> 31277 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:04 mysqld
> 31279 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:07 mysqld
> 31280 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:00 mysqld
> 31281 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:00 mysqld
> 31282 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:00 mysqld
> 31283 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:00 mysqld
> 31284 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:00 mysqld
> 31285 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:12 mysqld
> 31286 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:02 mysqld
> 31287 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:01 mysqld
> 31288 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:00 mysqld
> 31738 mysql      9   0  300M  30M  3004 S     0.0  3.5   4:11 mysqld
>  7110 mysql     10   0  300M  30M  3004 S     0.5  3.5   6:22 mysqld
> 12137 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:59 mysqld
> 16802 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:02 mysqld
> 16841 mysql      9   0  300M  30M  3004 S     0.0  3.5   0:02 mysqld
> 
> 
> 
> It seems mysqld has used all of my memory.
> 
> Any idea?
> -- 
> Patrick Hsieh <[EMAIL PROTECTED]>
> 
> GPG public key http://pahud.net/pubkeys/pahudatezplay.gpg
> 
> -- 
> Patrick Hsieh <[EMAIL PROTECTED]>
> GPG public key http://pahud.net/pubkeys/pahudatpahud.gpg
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 

-- 
Michael Bacarella  | Netgraft Corporation
                   | 545 Eighth Ave #401
 Systems Analysis  | New York, NY 10018
Technical Support  | 212 946-1038 | 917 670-6982
 Managed Services  | [EMAIL PROTECTED]


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to