Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2000 14:59:59 +0200
From:      Peter Pentchev <roam@orbitel.bg>
To:        william.carlsson@teligent.se
Cc:        Mikko Tyolajarvi <mikko@dynas.se>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Shared Memory
Message-ID:  <20001208145959.C451@ringworld.oblivion.bg>
In-Reply-To: <NEBBKDKPGLOJMLMCBOBLGEFCCHAA.wille@teligent.se>; from wille@teligent.se on Fri, Dec 08, 2000 at 01:01:16PM %2B0100
References:  <200012071754.eB7Hs5C22914@explorer.rsa.com> <NEBBKDKPGLOJMLMCBOBLGEFCCHAA.wille@teligent.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 08, 2000 at 01:01:16PM +0100, William Carlsson - Teligent Nordic, AB - Sweden wrote:
> Isn't all kern.* read only?
> Seems like it can't be changed more than it's in theory changeable
> 
> Something like the maximum nuber of files and processes, that is suposed to
> be
> soft configurable in login.conf (doesn't work either)
> 
> ,D Does anything work in FreeBSD? ,D

Uhm.. what version of FreeBSD do you have in mind?  On a 4.2 I have..

[roam@ringworld:v2 ~]$ limits | fgrep maxproc
  maxprocesses          256
[roam@ringworld:v2 ~]$

On another console:

[root@ringworld:v0 /etc]# perl -pi -e 's/maxproc=256/maxproc=512/' login.conf
[root@ringworld:v0 /etc]#

Logout and re-login on the first one:

[roam@ringworld:v2 ~]$ limits | fgrep maxproc
  maxprocesses          512
[roam@ringworld:v2 ~]$

Feels quite changeable to me :)

And btw - no, almost none of the kern.* sysctls are read-only.

[root@ringworld:v0 /etc]# sysctl kern.coredump kern.corefile kern.syncdelay ker
n.consmute
kern.coredump: 1
kern.corefile: %N.core
kern.syncdelay: 30
kern.consmute: 0
[root@ringworld:v0 /etc]# sysctl -w kern.coredump=0 kern.corefile='%N.CORE' ker
n.syncdelay=100 kern.consmute=1
kern.coredump: 1 -> 0
kern.corefile: %N.core -> %N.CORE
kern.syncdelay: 30 -> 100
kern.consmute: 0 -> 1
[root@ringworld:v0 /etc]#

..to name an (almost) random sample :)

G'luck,
Peter

-- 
This would easier understand fewer had omitted.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001208145959.C451>