Is there a way to prioritise X applications with focus, preferably both in terms of CPU and I/O?

Something like all X applications are niced and ioniced down in priority, but when they gain focus they get niced and ioniced back up to normal levels.

I don't want to reinvent the wheel, so I was hoping someone had already developed an application that does this.

asked 15 Feb '12, 22:47

Clinton's gravatar image

accept rate: 0%

I have not heard of something like this, so I know of no such software program, but that doesn't mean it can't be done, and without re-inventing the wheel either.

I would start out by looking at a bash script that would look at certain stats like like PID, CPU Time, I/), all of which are dynamic, and then re-order them based your specific criteria. You'll want to run the bash script as a cron job.


answered 16 Feb '12, 14:25

Ron's gravatar image

Ron ♦
accept rate: 13%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 15 Feb '12, 22:47

Seen: 934 times

Last updated: 16 Feb '12, 14:25

powered by OSQA