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

How do I even debug this?

2013-11-10 Thread Shachar Shemesh
Hi all, At home, I have a highly sophisticated media server (i.e. - a bash script that schedules, using at, a cat /dev/video0 video.mpg, and schedules another killall cat). We usually just order the Yes transcoder to jump to the proper programme at the right time, and coincidentally tell the

Re: How do I even debug this?

2013-11-10 Thread Amos Shapira
For a start: http://code.google.com/p/connectbot/issues/detail?id=96#c2 what's the value of $TERM in the different sessions? On 11 November 2013 06:21, Shachar Shemesh shac...@shemesh.biz wrote: Hi all, At home, I have a highly sophisticated media server (i.e. - a bash script that

Re: How do I even debug this?

2013-11-10 Thread geoffrey mendelson
On 11/10/2013 9:21 PM, Shachar Shemesh wrote: At this point, I'm at a loss as to what to check. I am not aware that tab has anything to do with stty. Does anyone understands the way the shell decides to provide auto-completion, and therefor the reason why it doesn't? Works fine with

Re: How do I even debug this?

2013-11-10 Thread Amos Shapira
BTW - why do you need tab completion every time? Can't you assign a shorter alias? What about writing a small CGI script and moving to a web interface? It'll be much more future proof IMHO. On 11 November 2013 06:36, Amos Shapira amos.shap...@gmail.com wrote: For a start:

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

linux system acting as access point/router?

2013-11-10 Thread geoffrey mendelson
I want to set up a laptop to act as a mifi type router. The reason is that I already have it, and it has a 6 hour battery. What I want to do is normally use the Wifi as a connection to my home network, which already has routers, DSL lines, DHCP servers, etc. When the power is out, and they

Re: linux system acting as access point/router?

2013-11-10 Thread Rabin Yasharzadehe
You will need a wireless device which supports AP mode (Access Point (AP) infrastructure mode), you can check if your current device supports it using the `iw list` command: # iw list ... Supported interface modes: * IBSS * managed * AP * AP/VLAN

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