Kernel [memory] tweaking question

ray_at_redshift.com
Date: 04/05/05

  • Next message: Alex Burke: "Boot0 on boot floppies and 2.88meg drives/controllers"
    Date: Tue, 05 Apr 2005 05:26:01 -0700
    To: freebsd-hackers@FreeBSD.ORG
    
    

    I'm doing some tweaking on my kernel tonight (FreeBSD 5.3) and I'm trying to get
    a better grip on what the following lines do and what impact they could have to
    the overall performance of a server:

    options SHMALL=
    options SHMMAX=
    options SHMMAXPGS=
    options SHMMIN=
    options SHMMNI=
    options SHMSEG=

    I understand these control shared memory and how many semaphores the kernel can
    allocate, but I guess what I'm not 100% clear on is how the kernel uses these
    resources when it comes to running something like Apache or MySQL on a heavily
    loaded server. In other words, for something like Apache, how much shared
    memory is required? Or what would adding additional shared memory and/or
    semaphores provide. Does the default # provided for by FreeBSD create a problem
    and/or would it use additional ram if allocated?

    Is there the anyone on the list that has experience with changing these that can
    provide a clear, down to earth explanation as to their impacts? Just hearing
    "you get more memory" doesn't really explain what the OS can do with it, or what
    not having enough could limit, etc.

    Thanks!

    Ray

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Alex Burke: "Boot0 on boot floppies and 2.88meg drives/controllers"

    Relevant Pages

    • Re: FreeBSD 7 on old SMP server?
      ... Apache seems to have less latency> responding to gets also. ... I'm just running a 7b3 kernel at the moment,> I'm going to have to repartition with a lot more swap space to be able> to build a 7 world > but even with this setup, 7 + ULE is a win for me. ... Are you saying you run FreeBSD 7 on an 80386machine? ... I've now got a Cyrix 486DrX-2 66 installed in place of my Am386DX-40, which supports CMPXCHG as well as ID'ing as a 486 so I don't need to do any tweaking to stay running. ...
      (freebsd-stable)
    • [Full-Disclosure] FreeBSD Security Advisory FreeBSD-SA-04:02.shmat
      ... FreeBSD only: NO ... the FreeBSD kernel is built with the ... which is part of the System V Shared Memory ... shared memory segments may be created, ...
      (Full-Disclosure)
    • FreeBSD Security Advisory FreeBSD-SA-04:02.shmat
      ... FreeBSD only: NO ... the FreeBSD kernel is built with the ... which is part of the System V Shared Memory ... shared memory segments may be created, ...
      (FreeBSD-Security)
    • [FreeBSD-Announce] FreeBSD Security Advisory FreeBSD-SA-04:02.shmat
      ... FreeBSD only: NO ... the FreeBSD kernel is built with the ... which is part of the System V Shared Memory ... shared memory segments may be created, ...
      (freebsd-announce)
    • FreeBSD Security Advisory FreeBSD-SA-04:02.shmat
      ... FreeBSD only: NO ... the FreeBSD kernel is built with the ... which is part of the System V Shared Memory ... shared memory segments may be created, ...
      (Bugtraq)