Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
schedtool, SCHED_IDLEPRIO and emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Thu May 11, 2017 8:02 am    Post subject: schedtool, SCHED_IDLEPRIO and emerge Reply with quote

Experimenting with schedtool I thought about if it could be worth running emerge while doing daily work without impact on the overall performance.
I'm running a ck-kernel with MuQSS: sched-MuQSS.txt.

Running schedtool with emerge command that will not be inherited by forked gcc processes, like this?
Code:
MAKEOPTS="-j2 -l2" FEATURES="-distcc -distcc-pump"  schedtool -D -e emerge -auNDtv world --keep-going --with-bdeps\=y

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2325
Location: Germania

PostPosted: Thu May 11, 2017 5:19 pm    Post subject: Reply with quote

Well, I cannot help with schedtool, but I run emerge without impacting overall performance by cgroup utils with kernel SCHED_AUTOGROUP, thanks to tholin, like:
Code:
cgexec -g cpu:idle emerge <command>
To set it up you may read tholin's howto in the last paragraph of his post here.
_________________
boost|select libs to build|slotable|python-buildid

hear hear
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu May 11, 2017 7:31 pm    Post subject: Reply with quote

Massimo B. wrote:
Running schedtool with emerge command that will not be inherited by forked gcc processes, like this?

Massimo B. ...

if you do it internally using portage, then yes , ie, you could do something like the following (and note, you probably want 'ionice' as I/O will also "impact").

/etc/portage/make.conf:
PORTAGE_IONICE_COMMAND="ionice -c 3 schedtool -D \${PID}"

HTH & best ... khay
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Fri May 12, 2017 8:58 am    Post subject: Reply with quote

geki wrote:
Code:
cgexec -g cpu:idle emerge <command>
To set it up you may read tholin's howto in the last paragraph of his post here.
Interesting purpose for the CGROUPS. However CGROUPS are only part of the mainline kernel CFS. So far I only know docker that is making use of CGROUPS, or multi-user environments, I never thought about enabling for a single user desktop.

khayyam wrote:
/etc/portage/make.conf:
PORTAGE_IONICE_COMMAND="ionice -c 3 schedtool -D \${PID}"
Very interesting, didn't know that parameter.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Fri May 12, 2017 9:24 am    Post subject: Reply with quote

Reading about ionice:
Quote:
NOTES
Linux supports I/O scheduling priorities and classes since 2.6.13 with the CFQ I/O scheduler.

So this one should be ignored by the system as I'm using BFQ currently and like to stay with it after studying benchmarks like this:
https://lwn.net/Articles/600366/
http://algo.ing.unimo.it/people/paolo/disk_sched/results.php
http://algo.ing.unimo.it/people/paolo/disk_sched/extra_results.php
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri May 12, 2017 1:12 pm    Post subject: Reply with quote

Massimo B. wrote:
Reading about ionice: [...] So this one should be ignored by the system as I'm using BFQ currently [...]

Massimo B. ... ionice is similarly capable of adjusting BFQ iosched.

best ... khay
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Wed Jun 07, 2017 11:00 am    Post subject: Reply with quote

khayyam wrote:
ionice is similarly capable of adjusting BFQ iosched.
Is that documented somewhere? Searching for ionice and BFQ I can't find reasonable information beside CFQ.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5858

PostPosted: Wed Jun 07, 2017 6:12 pm    Post subject: Reply with quote

There's nothing special about CFQ here, CFQ/Deadline/BFQ all support the same IO class API. It's the only one mentioned mainly because it's the only one most users get.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Fri Jun 09, 2017 4:55 am    Post subject: Reply with quote

khayyam wrote:
/etc/portage/make.conf:
PORTAGE_IONICE_COMMAND="ionice -c 3 schedtool -D \${PID}"

Does this really work as expected? That will run the short command schedtool to set the scheduler of $PID, that single command is run with ionice -c3, but would not apply ionice -c3 to the $PID?

If PORTAGE_IONICE_COMMAND is a command, what about that?
Code:
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID} && schedtool -D \${PID}"

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum