On Tue, 2003-07-15 at 07:20, Nigel Peck - MIS Web Design wrote: > Thanks. I'm not saying you're wrong I'm just curios, how do you know and what's the > difference with Apache (below) that is using up memory for each process? > > And why does ps show individual threads? Shouldn't it only show processes as the > name implies?
The linux thread implementation simply takes a "one process per thread" approach. That's why each thread appears as a process. I'm sure if you do a google search or possibly read the ps man page, it'll explain how you can see (or not see) the actual threads. > And why does each one show it is using a percentage of memory? > > PID PPID RSS VSZ %CPU %MEM CMD > 23282 1 1424 4304 0.0 1.2 /usr/sbin/httpd > 30483 23282 1640 4508 0.0 1.3 /usr/sbin/httpd > 30538 23282 1640 4508 0.0 1.3 /usr/sbin/httpd > 30639 23282 1640 4508 0.0 1.3 /usr/sbin/httpd > 31453 23282 1644 4508 0.0 1.3 /usr/sbin/httpd > > Sorry for so many questions. > > Cheers, > Nigel This is simply because each "process" (thread) is more or less a copy of the actual process. Keep in mind, also, that regardless of what process you are talking about, if multiple copies are running (whether threads or actual processes), the kernel will automatically share the text regions of each process. So, there is no additional overhead in running additional copies, at least as far as the code is concerned. -- David Hollister Furthurnet - Free, legal P2P - share the tunes: http://furthurnet.org -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list