Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243194 - [patch] sci-misc/boinc: more scheduling control in init script
Summary: [patch] sci-misc/boinc: more scheduling control in init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2008-10-22 10:05 UTC by Martin von Gagern
Modified: 2009-02-01 15:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Use chrt and cpu_share (bug243194a.patch,1.59 KB, patch)
2008-10-22 10:07 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2008-10-22 10:05:25 UTC
I got a bit annoyed that boinc still got quite a lot of CPU on a busy system even when run at nice level 19. I had a look at the various knobs the scheduler provides and found out that I'd like to be able to change its scheduling policy from SCHED_OTHER to SCHED_BATCH and also to change the CPU share allocated to the boinc user under the CFS scheduler. The former can be achieved using the chrt command line tool, while the latter is done by writing to /sys/kernel/${BOINCS_UID}/cpu_share file after at least one process has its uid set to that of the boinc user.

I've written a patch to the config file and init script to implement these features. I also changed "setsid start-stop-daemon ... &" to "start-stop-daemon --background", mainly because this should print error messages in the case of bad arguments to start-stop-daemon, instead of redirecting them as well.
Comment 1 Martin von Gagern 2008-10-22 10:07:06 UTC
Created attachment 169386 [details, diff]
Use chrt and cpu_share
Comment 2 Martin von Gagern 2008-12-30 17:30:34 UTC
Ping? Issue is two months old, please let me know if you are willing to include this kind of patch in general, and if there are any issues with the one I provided in particular.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-09 15:04:44 UTC
# ChangeLog for sci-misc/boinc
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.45 2009/01/02 20:40:21 cryos Exp $

  02 Jan 2009; Marcus D. Hanwell <cryos@gentoo.org> metadata.xml:
  Removed myself as maintainer.
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-01-21 15:36:08 UTC
hi, could you test against boinc-6.4.5 or 6.5.0
You can find them in sci overlay as boinc-bin for now (it is work in progress so i am willing to accept any patches now :P)
Comment 5 Martin von Gagern 2009-01-21 16:43:55 UTC
(In reply to comment #4)
> hi, could you test against boinc-6.4.5 or 6.5.0

Confirmed to be still an issue for current state of the 6.5.0 ebuild.
http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=tree;f=sci-misc/boinc-bin;h=6d68ba5aeb2337187e0e2bde7167e9a587a21844;hb=HEAD
The patch from comment #1 still applies to the corresponding files.
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-01 15:14:52 UTC
Thanks for the patch and that you bare for such long time unnoticed.
In the tree so enjoy :]