« Return to Thread: Red5 on multicore os
You could install package sysstat.That package includes the command "mpstat"Using "mpstat" you can see the overall cpu load and with option "mpstat -P ALL" you can see the individual cpu load in %.Please post your results, I'm sure more people are interested in them.WalterExample:2009-07-11 16:38:21 root@... mpstat -P ALL
Linux 2.6.24-etchnhalf.1-686 (xxxxxxxxxxxx) 07/11/2009 _i686_ (4 CPU)04:38:22 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle
04:38:22 PM all 0.24 0.00 0.10 0.02 0.00 0.00 0.00 0.00 99.63
04:38:22 PM 0 0.18 0.00 0.08 0.02 0.00 0.00 0.00 0.00 99.72
04:38:22 PM 1 0.31 0.00 0.13 0.02 0.00 0.00 0.00 0.00 99.53
04:38:22 PM 2 0.19 0.00 0.11 0.02 0.00 0.00 0.00 0.00 99.67
04:38:22 PM 3 0.28 0.00 0.08 0.02 0.00 0.00 0.00 0.00 99.61When I excute the same commands I can see multiple java threads. So far so good.But how can I tell if they are distributed over all cores of the cpu?As it is not my application I cannot tell if it uses the MultiThreadedApplicationAdapter.No I have played around with the garbage collector as this was the only information I have found. This can be set to parallelous mode. It seems that this is everything that can/needed to be done. Any opinions still appreciated.
Von: Walter Tak <walter@...>
An: red5@...
Gesendet: Donnerstag, den 9. Juli 2009, 17:02:57 Uhr
Betreff: Re: [Red5] Red5 on multicore os
When I execute ps -eLf I see a lot of threads. Since I run multiple Red5 servers (listening on different IPs) my count is 631 threads (using the command ps -eLf | grep java | grep -v "grep" | wc )I never really looked after it since most are idle so I should tune it down a bit but 631 looks fine to be distributed over my 4 cores.Do you use the MultiThreadedApplicationAdapter in your application ?----- Original Message -----From: nabble_alex@...To: red5@...Sent: Wednesday, 08 July 2009 23:34Subject: Re: [Red5] Red5 on multicore osNow I can provide actual top data as well to make it more clear. Below is the top output.I would not expect the java process at 71 percent while the overall cpu utilization is only at 9 percent.For me it looks like there is only one core occupied by the jvm and the remaining 3 cores remain unused.top - 23:25:46 up 1 day, 2:23, 1 user, load average: 0.41, 0.53, 0.45
Tasks: 76 total, 1 running, 75 sleeping, 0 stopped, 0 zombie
Cpu(s): 9.1%us, 2.5%sy, 0.0%ni, 86.3%id, 0.2%wa, 0.7%hi, 1.3%si, 0.0%st
Mem: 4050392k total, 3899516k used, 150876k free, 17932k buffers
Swap: 3903752k total, 64k used, 3903688k free, 2672916k cachedPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3886 root 20 0 1181m 1.0g 8536 S 71 26.8 736:01.41 java
Can anybody confirm my assumption? And how can I get the java process to utilize all 4 cpu cores? Or is there another way to check how many cores are in use?
Von: Alex Weiher <nabble_alex@...>
An: Red5@...
Gesendet: Mittwoch, den 8. Juli 2009, 11:56:49 Uhr
Betreff: [Red5] Red5 on multicore os
I am referring to this thread: http://www.nabble.com/Red5-and-Multicore-proccessor-to12897110.html#a12897110My system has a quadcore cpu and I am observing the following using top: A lot of processes are in the process list multiple times like events/0, events1, events/2, events/3. As far as I know this is one process for each core.Now my red5-java process is in that list only once with name java. The CPU utilization of that single process is quite high, spiking up to 40 even 70 percent while the overall cpu utilization is low at about 6%-12%.Now I wonder what does this mean? Is the java thread running only on one core with high utilization instead of using all cores?How can I make sure that the jvm is using all multicore capabilities and utilizing each core?I would love to see the process like java/0, java/1, java/2, java/3. Is there any setting withing red5, jvm or the os to do that or to make sure it uses all cores?
« Return to Thread: Red5 on multicore os
| Free embeddable forum powered by Nabble | Forum Help |