Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

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

Clinton
1
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.

link

answered 16 Feb '12, 14:25

Ron's gravatar image

Ron ♦
9361718
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×2

Asked: 15 Feb '12, 22:47

Seen: 967 times

Last updated: 16 Feb '12, 14:25

powered by OSQA