On 2012/04/21 11:51, Kostas Zorbadelos wrote: > Thanks for the good explanations. > I always start bind either at system boot, or manually under the root > user using the rc.d script. Therefore the class should be "daemon" > according to your explanations and from what I see in > /etc/rc.d/rc.subr. > > However it seems that the process is running with 512MB datasize. Which > led me to this comment in /etc/login.conf: > > # The default values > # To alter the default authentication types change the line: > # :tc=auth-defaults:\ > # to be read something like: (enables passwd, "myauth", and activ) > # :auth=passwd,myauth,activ:\ > # Any value changed in the daemon class should be reset in default > # class. > # > > So the value in daemon is > daemon:\ > :ignorenologin:\ > :datasize=infinity:\ > :maxproc=infinity:\ > :openfiles-cur=128:\ > :stacksize-cur=8M:\ > :localcipher=blowfish,8:\ > :tc=default: > > while > > default:\ > :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin > /usr/local/bin:\ > :umask=022:\ > :datasize-max=512M:\ > :datasize-cur=512M:\ > :maxproc-max=256:\ > :maxproc-cur=128:\ > :openfiles-cur=128:\ > :stacksize-cur=4M:\ > :localcipher=blowfish,6:\ > :ypcipher=old:\ > :tc=auth-defaults:\ > :tc=auth-ftp-defaults: > > could it be that datasize-max prevails from "default"?
Ah yes, that's correct, so the settings in daemon are ineffective. I wonder if they should be removed to avoid confusion, or changed so that they are effective... Either way what's there now is just confusing. > I think I will add a "named" section in login.conf after I study its man > page ;-) rc.d(8) and rc.subr(8) are also useful references. > What do you think? Makes sense to me, if you have a certain daemon you would like to give more resources to while keeping standard limits for most daemons, this is exactly the right way to do it.