LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2014, 11:05 AM   #1
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 169
Blog Entries: 4

Rep: Reputation: 24
Start process at boot with some niceness.


Dear all,
I want to boot my Debian Sid system such that after boot, my Xorg and plasma-desktop starts with -20 niceness and realtime ioniceness so that GUI becomes responsive for heavy load.

How can I do that.

Can anyone suggest where the Xorg and plasma-desktop startup file located so that I can change /usr/bin/X, /usr/bin/plasma-desktop written in those files to
nice -n -20 /usr/bin/...

Thanks.
 
Old 12-01-2014, 06:34 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,025

Rep: Reputation: 203Reputation: 203Reputation: 203
If the GUI becomes more responsive under heavy load, any processes it executes will become even less responsive.
 
Old 12-01-2014, 10:37 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,362

Rep: Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001
You could always just use renice after-the-fact.
 
Old 12-02-2014, 01:04 AM   #4
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 169
Blog Entries: 4

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by suicidaleggroll View Post
You could always just use renice after-the-fact.
I actually want that automatically the Xorg and plasma-desktop starts with desired priority, so that I do not have to manually renice every time after boot.
 
Old 12-02-2014, 10:07 AM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,362

Rep: Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001Reputation: 2001
Who said anything about doing it manually? Just stick it in one of the startup scripts and you're done.
 
Old 12-03-2014, 11:21 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
It depends on your distribution.

Changing the nice value can/will muck up your system fairly easily.

If your distribution uses systemd for startup, it also will only screw up the user. The problem is making the X server run with a lower priority than those applications using it. This can cause a priority inversion lockup. USUALLY this can be broken as any process hogging the server will eventually wait on the server... But even then, the X server will respond to it (and the other processes), but once it grabs the cpu again, the X server can get locked out - especially if that process is compute bound.

Under systemd nice values only affect the processes within a cgroup. They don't alter priorities between cgroups.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
niceness of root process -20 rootkit or breaking suspected removal problems sietze1977 Linux - General 1 01-29-2014 10:16 PM
how to add a process start during the system boot rajesh84210 Linux - General 2 07-27-2009 03:47 AM
Start process at boot frkstein Ubuntu 1 05-15-2005 02:53 PM
Start noip2 process at boot up kt8993 Mandriva 1 05-06-2005 11:47 PM
eth0 wont start with boot process Splin Linux - Networking 3 04-13-2004 06:55 PM


All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration