ULE scheduler miscalculates CPU utilization for threads that run in short bursts

2012-07-18 Thread Ryan Stone
At $WORK we use a modification of DEVICE_POLLING instead of running our NICs in interrupt mode. With the ULE scheduler we are seeing that CPU utilization (e.g. in top -SH) is completely wrong: the polling threads always end up being reported at a utilization of 0%. I see problems both

Re: ULE scheduler miscalculates CPU utilization for threads that run in short bursts

2012-07-18 Thread Alexander Motin
On 18.07.2012 23:29, Ryan Stone wrote: At $WORK we use a modification of DEVICE_POLLING instead of running our NICs in interrupt mode. With the ULE scheduler we are seeing that CPU utilization (e.g. in top -SH) is completely wrong: the polling threads always end up being reported

Re: Obtaining l2 misses and cpu utilization in a module

2009-02-19 Thread Nikola Knežević
On 19 Feb 2009, at 12:15 , Joseph Koshy wrote: % pmccontrol -L pmccontrol: Initialization of the pmc(3) library failed: No such file or directory. Did you load hwpmc(4) into the kernel? How can I check that? kldload pmc reports that pmc interface exists in kernel. pmc: Unknown Intel

Obtaining l2 misses and cpu utilization in a module

2009-02-18 Thread Nikola Knežević
Hi, I would like to obtain fore mentioned data from within my module. I need these performance metrics to see how certain code executes, and make decisions during the runtime. pmc(3) seems complete, but it also seems to be intended for use in the userland. How to use pmc from modules? Is

Re: Obtaining l2 misses and cpu utilization in a module

2009-02-18 Thread David Wolfskill
to be intended for use in the userland. How to use pmc from modules? Is there any other way? Also, module is amd64 only, so I don't care about portability. I'm not sure what you mean by module ini this context. But CPU utilization my be found in the kern.cp_time sysctl value; per-core

Re: Obtaining l2 misses and cpu utilization in a module

2009-02-18 Thread Joseph Koshy
I would like to obtain fore mentioned data from within my module. I need these performance metrics to see how certain code executes, and make decisions during the runtime. pmc(3) seems complete, but it also seems to be intended for use in the userland. How to use pmc from modules? Is there

Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2

2008-11-17 Thread Won De Erick
- Original Message From: Won De Erick [EMAIL PROTECTED] To: Jeremy Chadwick [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; freebsd-hackers@freebsd.org Sent: Sunday, November 16, 2008 7:18:46 PM Subject: Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2

Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2

2008-11-17 Thread Ivan Voras
Won De Erick wrote: I compiled the following em driver for Intel NIC Pro (82571) w/ FreeBSD 7.1 Beta 2 on HPDL 585 machine having 16CPUs. http://people.yandex-team.ru/~wawa/ With net.isr.direct=1, I made some changes on kthreads(default=2) for em0 and em1's rx. dev.em.0.rx_kthreads:

Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2

2008-11-17 Thread Won De Erick
- Original Message From: Ivan Voras [EMAIL PROTECTED] To: freebsd-hackers@freebsd.org Sent: Tuesday, November 18, 2008 5:21:04 AM Subject: Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2 Won De Erick wrote: I compiled the following em

Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2

2008-11-16 Thread Won De Erick
- Original Message From: Jeremy Chadwick [EMAIL PROTECTED] To: Won De Erick [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; freebsd-hackers@freebsd.org Sent: Saturday, November 15, 2008 10:16:31 PM Subject: Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2

NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2

2008-11-15 Thread Won De Erick
16K WAIT a 38:22 12.26% irq31: bce0 45 root1 -64- 0K16K WAIT 7 11:31 12.06% irq17: uhci0 47 root1 -64- 0K16K WAIT 6 1:54 3.66% irq16: ciss0 28 root1 -32- 0K16K WAIT 8 16:01 0.00% swi4: clock sio Overall CPU

Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2

2008-11-15 Thread Jeremy Chadwick
root1 -32- 0K16K WAIT 8 16:01 0.00% swi4: clock sio Overall CPU utilization has significantly dropped, but I noticed that swi1 has taken CPU0 with high utilization when the net.isr.direct=0. What does this mean? SCENARIO B : Bombarded w/ more TCP traffic: Worst

CPU utilization

2005-11-09 Thread abdul.shaik
Hi Good Morning.. I want to calculate the CPU utilization in my DHCP server implementation. I am using C language on Solaris 9. Could any one please let me know Is there any system call can do this? Thanks in advance. Regards, Abdul Rasheed. Confidentiality Notice The information

Re: CPU utilization

2005-11-09 Thread Dan Nelson
In the last episode (Nov 10), [EMAIL PROTECTED] said: Hi Good Morning.. I want to calculate the CPU utilization in my DHCP server implementation. I am using C language on Solaris 9. Could any one please let me know Is there any system call can do this? This is completely the wrong mailing

how to calculate CPU utilization?

2005-02-12 Thread Nimnod
Hi, i am looking for how to accurately calculate the CPU utilization per process. i have looked through the top sources, and found out it's using the kvm lib, which isn't suitable for my purpose. is there a way to accurately calculate %CPU based on information from the struct proc ? it does

Re: how to calculate CPU utilization?

2005-02-12 Thread Dan Nelson
In the last episode (Feb 12), Nimnod said: i am looking for how to accurately calculate the CPU utilization per process. i have looked through the top sources, and found out it's using the kvm lib, which isn't suitable for my purpose. Why not? You don't need to be setuid root to call kvm

Re: how to calculate CPU utilization?

2005-02-12 Thread Nimnod
On Sat, 12 Feb 2005 14:16:51 -0600, Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Feb 12), Nimnod said: i am looking for how to accurately calculate the CPU utilization per process. i have looked through the top sources, and found out it's using the kvm lib, which isn't suitable

Re: Top not showing CPU utilization?

2000-12-12 Thread sthaug
I am running FreeBSd 4.2 on machine with 2 Pentium II CPU's When I run "top", it shows my processes with 0.00% CPU Are you by any chance running an Asus P2B-DS motherboard? There was an issue with some versions of the BIOS for the motherboards not initializing the Real time clock (as far as

Top not showing CPU utilization?

2000-12-11 Thread Chuck Rock
I am running FreeBSd 4.2 on machine with 2 Pentium II CPU's When I run "top", it shows my processes with 0.00% CPU Is there a problem with top, or my machine?? last pid: 34959; load averages: 0.10, 0.06, 0.05up 8+05:27:27 21:05:14 41 processes: 1 running, 40 sleeping CPU states: 0.0%