Bug 136958 - misc/dnetc does not respect nice
Summary: misc/dnetc does not respect nice
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tim Bishop
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-21 13:30 UTC by Martin Lesser
Modified: 2009-07-26 13:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Lesser 2009-07-21 13:30:07 UTC
Running the distributed.net-client dnetc on several machines I noticed that also the client should only numbercrunch when no other processes need cpu these other processes are slowed down - sometimes drastically.

Also if all dnetc-processes are running with PRI >130 the only solution for me to get the expected behaviour (pause numbercrunching when other processes need CPU) was to idprio 31 -PIDs_OF_DNETC.

Before switching to the ULE scheduler I cannot remember that.

Fix: 

Add something like

  idprio 31 -PIDs_OF_DNETC

into /usr/local/etc/rc.d/dnetc?
How-To-Repeat: Compare time for compiling a larger port with and without a running dnetc.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-07-21 13:30:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tdb

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2009-07-26 13:01:36 UTC
tdb         2009-07-26 12:01:21 UTC

  FreeBSD ports repository

  Modified files:
    misc/dnetc           Makefile 
    misc/dnetc/files     dnetc.sh.in 
  Log:
  Add dnetc_idprio RC flag to run dnetc under idprio with the given
  priority. Not on by default.
  
  PR:             ports/136958
  Submitted by:   Martin Lesser <ml-freebsd@bettercom.de>
  
  Revision  Changes    Path
  1.64      +4 -4      ports/misc/dnetc/Makefile
  1.3       +3 -2      ports/misc/dnetc/files/dnetc.sh.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Tim Bishop freebsd_committer freebsd_triage 2009-07-26 13:17:54 UTC
State Changed
From-To: open->closed

I've added a new option called dnetc_idprio. If you add dnetc_idprio=31 
to your rc.conf you'll get the desired affect.