Re: Is there a reason to use `top` over `perf top`?

2013-11-11 Thread guy keren
1. perf top - didn't know about this. interesting. 2. 'top' shows more then 'perf top' - it shows memory consumption, it shows time spent waiting for I/O (which won't show on 'perf top'), it shows the spread of processes and threads across the CPU cores. i say - why not use both? --guy On

Is there a reason to use `top` over `perf top`?

2013-11-10 Thread Elazar Leibovich
It seems that while top lists kernel provided statistics per process which is somewhat interesting but not all that useful, perf is really sampling the system, and gives a real picture of who's hogging your system, which is usually why you've started top in the first place. Let me give a trivial

Re: Is there a reason to use `top` over `perf top`?

2013-11-10 Thread Steve Litt
On Sun, 10 Nov 2013 20:24:56 +0200 Elazar Leibovich elaz...@gmail.com wrote: Here's one reason: == slitt@mydesk:~$ cat /etc/issue Ubuntu 12.10 \n \l slitt@mydesk:~$ uname -a Linux mydesk 3.5.0-42-generic #65-Ubuntu SMP Tue Oct 1 23:38:22 UTC 2013 x86_64

Re: Is there a reason to use `top` over `perf top`?

2013-11-10 Thread Tzafrir Cohen
A. Apples are better than oranges. B. perf top cannot be run by a non-root user. -- Tzafrir Cohen | tzaf...@jabber.org | VIM is http://tzafrir.org.il || a Mutt's tzaf...@cohens.org.il || best tzaf...@debian.org|| friend

Re: Is there a reason to use `top` over `perf top`?

2013-11-10 Thread Elazar Leibovich
While the point of perf not being available to non-root out of the box are valid (though, it's just apt-get install linux-tools + echo 0|sudo tee /proc/sys/kernel/perf_event_paranoid away, and it's the best bargain you'll ever make), IMHO this is indeed apple vs apple comparison. The goal of