Live data from Hacker News

Using htop to generate a live website background

drunken-security.at

51–60 of 63 posts

Re: Using htop to generate a live website background

#54
post #46
post #44

Earlier quoted context omitted.

Thanks! Every now and then I want to see individual CPU usage (usually when I want to check if a program is multithreaded) and I Google to find a way to do it. I always end up doing `sudo apt-get install htop`.

If htop is unavailable, then you can hit the number 1 key in regular top on Linux to see individual CPU utilization.

Or "P" on FreeBSD.

Re: Using htop to generate a live website background

#55

Hi, htop author here: this brought a smile to my face! Wondering if I should do the same in htop's own website. Would be fun to follow the activity spike when the new major release comes later this year! Major kudos to the author for the idea!

htop is one of my favorite UNIX tools in existence!

Check out htop running my laptop while I had an "ssh-multi" tmux session opened up on an Apache Spark cluster, doing computation 32 cores x 25 nodes = 800 cluster cores! It's so fun to watch all of those cores light up green while doing a big batch job.

https://www.flickr.com/photos/amontalenti/21512617686/in/dat...

We are big fans of htop at Parse.ly. We install it on every one of our nodes.

Re: Using htop to generate a live website background

#57

Hi, htop author here: this brought a smile to my face! Wondering if I should do the same in htop's own website. Would be fun to follow the activity spike when the new major release comes later this year! Major kudos to the author for the idea!

Thanks for htop!

Re: Using htop to generate a live website background

#58

I studied the line read _ _ sid &1 strace -esetsid setsid sh -c "exec $PROGRAM /dev/tty2 >&0 2>&1 ") http://www.tldp.org/LDP/abs/html/abs-guide.html#PROCESS-SUB

thank you :)

Is there any good reason not to use an ordinary pipe there? In zsh, strace blah |& read sid

Re: Using htop to generate a live website background

#59

Hi, htop author here: this brought a smile to my face! Wondering if I should do the same in htop's own website. Would be fun to follow the activity spike when the new major release comes later this year! Major kudos to the author for the idea!

htop is one of my favorite UNIX tools in existence! Check out htop running my laptop while I had an "ssh-multi" tmux session opened up on an Apache Spark cluster, doing computation 32 cores x 25 nodes = 800 cluster cores! It's so fun to watch all of those cores light up green while doing a big batch job. https://www.flickr.com/photos/amontalenti/21512617686/in/dat... We are big fans of htop at Parse.ly. We install it…

Whoa, amazing picture! Thanks for sharing!

Re: Using htop to generate a live website background

#60

Earlier quoted context omitted.

thank you :)

Is there any good reason not to use an ordinary pipe there? In zsh, strace blah |& read sid

Well they could use an ordinary pipe, but they would have to group the later expression in parantheses. In bash the | creates a fork, so if you try: echo "sdfsdf" | read sid && echo $sid you get a blank line, but if you try: echo "sdfsdf" | (read sid && echo $sid) you get "sdfsdf" |& is an abbreviation for >2&1 | . In zsh the grouping isn't needed, the expression works out of the box.

For more information on the subject: http://stackoverflow.com/questions/13763942/bash-why-piping-...

Post reply on HN