Re: Problems reclaiming VM cache = XFree86 startup annoyance

From: David G. Lawrence (dg_at_dglawrence.com)
Date: 12/20/03

  • Next message: Vulpes Velox: "Re: WRITE command timeout"
    Date: Sat, 20 Dec 2003 13:55:43 -0800
    To: Paul Mather <paul@gromit.dlib.vt.edu>
    
    

    ...
    > As you can probably gather, all this manual intervention is a bit of a
    > hassle. So, my question is this: is there a way explicitly to force
    > the kernel to flush its VM cache (to move it to "Free"). Failing
    > that, are there any sysctls to tune to help alleviate the problem?
    > The only sysctls I change in /etc/sysctl.conf are as follows:

       I don't know what is causing your problem, but 'cache' pages in FreeBSD
    are free pages - they can be allocated directly in the page allocation code.
    They only differ from "free" pages in that they contain cached file data.
       So the number of pages 'cache' vs. 'free' isn't the cause of the problem.
     
    > net.inet.tcp.sendspace=65536

       You might want to use 65535 there instead to avoid the system having to
    use large-window TCP extensions.

    > kern.ipc.shmmax=67108864
    > kern.ipc.shmall=32768
    >
    > The latter two were in response to an installation message of a port I
    > installed quite some time ago (xine, perhaps?).

       Uh, yeah. You might want to take that out and see if it affects the
    problem. shmall of 32768 could potentially result in up to 134MB of virtual
    memory being consumed, and in most FreeBSD kernel configurations, this would
    cause it to run out.

    -DG

    David G. Lawrence
    President
    Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500
    TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175
    The FreeBSD Project - http://www.freebsd.org
    Pave the road of life with opportunities.
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Vulpes Velox: "Re: WRITE command timeout"

    Relevant Pages

    • SMP on FreeBSD 6.x and 7.0: Worth doing?
      ... I will need to build several Web caches over the next few months, and just took advantage of the Christmas lull to test FreeBSD 7.0 BETA 4 to see how it will perform at this task. ... I built up a 4 core FreeBSD box, and asked a friend who's a Linux fanatic to do the same with Linux on identical hardware. ... The fetches done by each process are the same batch of URLS, but shuffled differently, so each URL will get a miss the first time and then hits each time it comes up thereafter unless the cache overflows. ... Could it be that there less concurrency or more overhead in FreeBSD file operations than there is in Linux? ...
      (freebsd-stable)
    • MegaRAID lockups under 5.5 PRELEASE
      ... on-board battery backed cache, while the main machine has 256Mb. ... FreeBSD and this model of controller. ... after some driver improvements by Scott Long. ... the other box has remained stable after the same upgrade, ...
      (freebsd-stable)
    • Re: How does disk caching work?
      ... > Is there a document anywhere that describes in detail how FreeBSD ... > such as 'FreeBSD uses all available memory for disk caching'. ... MEMORY IS A BUFFER CACHE for all device IO. ...
      (freebsd-performance)
    • Re: Concealing short disconnects
      ... >I have a few machines behind my FreeBSD box. ... >to ISP via ppp (PPPoE protocol). ... >reconnect in just a moment - so the diconnect is usually less ... that acts as a cache hold a few seconds of network traffic that would ...
      (freebsd-questions)
    • Re: BSD Java distfile
      ... > me) have given up in disgust on trying to install Java on FreeBSD. ... > it's a hassle; when I've tried it, it was a hassle, and then it didn't ...
      (comp.unix.bsd.freebsd.misc)