Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding nice to an rc.d script



On 8/27/2011 22:29, Ben Cottrell wrote:
On Sat, 27 Aug 2011 19:23:51 -0700, AGC wrote:
I did try to put just -N on the flags but it doesn't work.  I can see in
top that ntpd is not running at higher priority as if the rc_flags were
being ignored entirely.

"Nice" is different from "priority". Are you looking at the correct
field in top?

You can also check nice values with, say, "ps -o nice -p<pid>".

The nice value *influences* the priority, but sometimes not as
much as you would think :-)

I am looking at the right field. ;)

But I can also see that all the options set in rc_flags already (before I did any editing) are not showing up in ps.

For example, I can see several things running with options:

  115 ?     Ss  0:47.73 /usr/sbin/syslogd -s
  374 ?     IWs 0:00.06 /usr/sbin/inetd -l
  377 ?     I   0:25.43 qmgr -l -t unix -u

However, ntpd isn't:

 9116 ?     Ss  0:02.50 /susr/sbin/ntpd

But, rc_flags in an unmodified /etc/rc.d/ntpd says:

rc_flags="-u ntpd:ntpd -i ${ntpd_chrootdir} $rc_flags"

So at the very least I would think I could see:

 9116 ?     Ss  0:02.50 /susr/sbin/ntpd -u ntpd:ntpd -i ...

This implies to me that ntpd isn't being fed any of the rc_flags at all.




Home | Main Index | Thread Index | Old Index