LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Multiple My Sql processes (https://www.linuxquestions.org/questions/linux-newbie-8/multiple-my-sql-processes-550553/)

veenaonnet 05-02-2007 12:05 AM

Multiple My Sql processes
 
Hello,

I am running MySql 5.0.22 on Linux machine. When I try to see memory usage of y Sql I get to see number of processes running as follows. Memory usage for all these processes is same.

So are these processes sharing the memory or they take seperate memory.e.g. If 10 processes are running with 20 MB each then total memory usage is still 20MB or it will be 10*20MB=200 MB?
What is the logic behind number of processes or they are threads?

Snapshot of my server
mysqld_safe 1236
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072
mysqld 24072

Thanks.

Regards,
Veena

MensaWater 05-03-2007 08:58 AM

Likely most of them are threads. In Linux all threads are shown as processes which is rather annoying IMO.

You can verify they're using the SAME memory by checking comparing /proc/<pid>/maps. If they are threads they'll have exactly the same memory maps.


All times are GMT -5. The time now is 03:45 PM.