Archive for July, 2009

Limit application CPU usage

How to use CPUlimit to set limitations on CPU usage for applications on Linux.

Monitor the CPU usage of applications that we use, it is recommended if you need to maintain a good performance on your system, sometimes in our system we have applications that should not stop working and we need some free resources on your computer for them. Linux can prevent other applications to consume these resources and the applications work properly within a CPU limit.

To install in Debian:

$ aptitude install cpulimit

To install it on any other Linux distribution follow this:

$ wget http://downloads.sourceforge.net/cpulimit/cpulimit-1.1.tar.gz
$ tar-zxf cpulimit * xxx.tar.gz
$ cd cpulimit-xxx
$ make

Use it
To use it, you will need to know the name of the application or PID, once you know it:
Examples of use

Tags:

Debian Today's New Look

I decided to pitch the old theme that has been part of Debian Today for the last year or so. After trying multiple themes I decided to stick with something simple and try to incorporate Debian colors in to it. I have taken a theme I got from freewpthemes.net and changed the CSS and images. [...]

Limit download and upload speed on Linux

I tend to do a lot of things in a terminal that take up my bandwidth. Unfortunately I don’t currently have a lot of bandwidth to spare and it can really hurt to watch apt take 99% of my bandwidth during a large update. Along comes trickle to help manage bandwidth usage.
trickle is a portable [...]

Add color to man pages for better organization

By using most you can easily set your man pages to display with colors. Having colored man pages help when scanning quickly through a man page to get information. It’s really quite simple to do.

How to exit ping and other command line apps in Debian

I am constantly looking at keywords people search for on Google for other websites that I run. Finding what people are searching for and then seeing if they have been adequately answered makes for a lot of hits to other sites I work on.
I was surprised today at the amount of people that had searched [...]