Re: Isolating high cpu load at function level
On Wednesday 24 June 2009 07:42:06 Gary Gatten wrote: I have a process with several threads - the main worker threads typically use 20% CPU - but after upgrading to a new version they're now using 90% cpu. I'm trying to determine what function these threads are performing that's requiring so much more cpu. Is it bad code? I bug in a library I linked against? What? I've tried gdb with list, info threads, info stack, bt full. I can make sense of some of it. I guess what I'm hoping for is something like top at the thread level, such that functions that thread perform are sorted highest util (time/whatever). You'd typically turn on profiling, but sometimes less information is good, so you might be able to get the info you need by having your workers report the information. libwp[1] has some support for reporting that you could extend with values you're interested in. [1] http://www.garypennington.net/libwp/docs/html/ -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Isolating high cpu load at function level
Hello, I have a process with several threads - the main worker threads typically use 20% CPU - but after upgrading to a new version they're now using 90% cpu. I'm trying to determine what function these threads are performing that's requiring so much more cpu. Is it bad code? I bug in a library I linked against? What? I've tried gdb with list, info threads, info stack, bt full. I can make sense of some of it. I guess what I'm hoping for is something like top at the thread level, such that functions that thread perform are sorted highest util (time/whatever). TIA for any help! Gary font size=1 div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in' /div This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. /font ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Login Shells /SSHd causing high CPU load....
Hi guys... I've been experiencing a weird increase in the percentage of CPU Load... It was weird cause after i logged in..just that second the load begins to decreaseso i assumed there was maybe some backup or cron running...And as i was busy i didnt have the time to investigate Now i took a little depth look and found that whenever someone Logs in or when i su - to root the load goes up to 3.5..when the avg load on the server is 0.4 it happens with all shells.i thought it was a tcsh thing cause is the one i use..so i change my login shell to bash and the samethen i noticed that sshd also increases pretty bad the load...so the question is how can i fix this...or how can i at least try to trace this... Cheers and thanks in advance for any answer, hint you can give me Agustin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Per CPU load statistics
Hi Is it possible to get per CPU (load) statistics? It seems cp_time is a sum for all the CPUs, so is there another way to get this information? Cheers, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cpu load
Eric Olsson wrote: I'v got FreeBSD 4.9 installed on my laptop and all is working fine except one thing and that is to be able to see how much my cpu is working. When i use 'top' it's all at 0% even tho i'm currently running alot of programs and doing a make install from the ports. I'v installed wmcpuload dockapp and that one allso allways shows 0%. Considering i'm on an old PII 300 Mhz with 64 Mb ram one would think it should use some atleast :) It could mean that your kernel and user world got out of sync due to an incomplete upgrade procedure, so 'top' does no longer understand the data it gets from the kernel, or it could be an indicator that the stat clock isn't working. The stat clock is driven by the Real Time Clock (RTC) chip on the mainboard, which could be either broken or incompatible with the kernel driver. Does 'systat -v 1' complain that the stat clock died? We had this problem once when a lead of the tiny RTC quartz came loose (due to bad soldering) and the chip stopped working. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers [EMAIL PROTECTED] | http://www.escapebox.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cpu load
I found that another person had the same problem when i searched the lists and that he got the tip to do a sh MAKEDEV all. I did just that and rebooted. After that it's working ok, it shows both in systat -v 1 and in my dockapp. Thanks for the replys :) // Eric Olsson Vahric MUHTARYAN wrote: I can't say anything about this because I didn't see any problem like this . if no body say something about this for my self use cvsup and take up-to-date your source and try make world process maybe it can solve you problem . I think that it can be occur problem between userland/base system and kernel . Vahric Message - From: Eric Olsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 12, 2003 10:51 PM Subject: cpu load I'v got FreeBSD 4.9 installed on my laptop and all is working fine except one thing and that is to be able to see how much my cpu is working. When i use 'top' it's all at 0% even tho i'm currently running alot of programs and doing a make install from the ports. I'v installed wmcpuload dockapp and that one allso allways shows 0%. Considering i'm on an old PII 300 Mhz with 64 Mb ram one would think it should use some atleast :) Is there anything i need to add to the kernel or sysctl to get the monitoring to start working ? CPU: Pentium II/Pentium II Xeon/Celeron (300.68-MHz 686-class CPU) Origin = GenuineIntel Id = 0x652 Stepping = 2 Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV, PA T,PSE36,MMX,FXSR With best regards Eric Olsson ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cpu load
I'v got FreeBSD 4.9 installed on my laptop and all is working fine except one thing and that is to be able to see how much my cpu is working. When i use 'top' it's all at 0% even tho i'm currently running alot of programs and doing a make install from the ports. I'v installed wmcpuload dockapp and that one allso allways shows 0%. Considering i'm on an old PII 300 Mhz with 64 Mb ram one would think it should use some atleast :) Is there anything i need to add to the kernel or sysctl to get the monitoring to start working ? CPU: Pentium II/Pentium II Xeon/Celeron (300.68-MHz 686-class CPU) Origin = GenuineIntel Id = 0x652 Stepping = 2 Features=0x183f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA T,PSE36,MMX,FXSR With best regards Eric Olsson ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problems with Gnome CPU load applet
I've got 2 different STABLE machines, that are bith pretty much up to date. On both, when I try to add teh CPU load monitor to the Gnome taskbar, the applet crashes almost instanlt. What can I do to fix this? -- They that would give up essential liberty for temporary safety deserve neither liberty nor safety. -- Benjamin Franklin To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Problems with Gnome CPU load applet
On Thu, 2003-01-30 at 19:12, stan wrote: I've got 2 different STABLE machines, that are bith pretty much up to date. On both, when I try to add teh CPU load monitor to the Gnome taskbar, the applet crashes almost instanlt. What can I do to fix this? What version of GNOME? In most cases, this could probably be solved by a forced upgrade of libgtop[2]. Joe -- PGP Key : http://www.marcuscom.com/pgp.asc signature.asc Description: This is a digitally signed message part