Re: Problems reclaiming VM cache = XFree86 startup annoyance

From: Matthew Dillon (dillon_at_apollo.backplane.com)
Date: 12/25/03

  • Next message: Shawn K. Quinn: "Very weird problem with dc driver"
    Date: Wed, 24 Dec 2003 23:10:08 -0800 (PST)
    To: Paul Mather <paul@gromit.dlib.vt.edu>
    
    

    :I'm not sure what is overloading the disk other than the large amounts
    :of paging that are initiated the moment I invoke "startx". The last
    :time I did this, I looked at the disk activity beforehand via "systat
    :-vm 1". The disks were basically idle (all < 0.05 MB/s). As soon as
    :I executed "startx" the swap volume became very active (90--96% busy;
    :3--7 MB/sec) and the "SWAP PAGER" out column steadily showed paging
    :activity (nothing on the "in" column). (The 4 KB/t was a tell-tale
    :sign the system was doing nothing but paging.)
    :
    :I guess my question is this: why so much paging? If, as someone else
    :has mentioned, "Cache" and "Free" pages are both "free" (i.e.,
    :allocable memory), with the subtle distinction being that "Cache"
    :pages used to hold disk blocks now discarded, then why not allocate
    :what is needed from them? As I stated in my original thread, all the
    :"Inactive" memory seems to get dumped over to "Cache" when I run
    :"startx", and there's usually almost about 400 MB of it when this
    :happens.
    :...
    :Cheers,
    :
    :Paul.

       If it could, it would... my guess is that your box is using a shared
       memory video buffer and X is allocating a large swath of
       contiguous physical memory to accomodate it, which would force it to
       pageout any preexisting dirty data using that memory. That's all I can
       think of.

                                            -Matt
                                            Matthew Dillon
                                            <dillon@backplane.com>
    _______________________________________________
    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: Shawn K. Quinn: "Very weird problem with dc driver"

    Relevant Pages

    • Re: Att. Alex Nichol -VM cont.
      ... I find documentation that says a 4kb page in memory is written to the hard ... manner that a 4kb memory page is equal to a 4kb cluster written on the disk". ... So where is the basis for saying since 4kb paging in memory that 4kb clusters ...
      (microsoft.public.windowsxp.general)
    • Re: dataset Performence Issue
      ... of data to hold in memory in some applications. ... Network and disk costs see to that. ... First of all, Dataset is guess what - Managed Code, and to send all the ... You need paging mechanisms etc. which are ...
      (microsoft.public.dotnet.framework.adonet)
    • Re: MALLOC
      ... Paging isn' treally a good model, for the reason you point out. ... I/O would suffice (we use multimedia I/O calls, which work on structured files, and can ... >exceptions on access to uncommitted memory. ... >be to allocate pagefile space in 64 KB chunks, ...
      (microsoft.public.vc.mfc)
    • Re: Virtual memory?
      ... Intel architecture involves three memory management models and they are FLAT ... "The segment selector identifies the segment to be accessed and the offset ... Section 3.6 Paging ... page swapped out to disk is done in 4k incriments. ...
      (microsoft.public.windowsxp.general)
    • Att. Alex Nichol -VM cont.
      ... your recommendation that 4k cluster sizes is optimal for the pagefile. ... Intel architecture involves three memory management models and they are FLAT ... Section 3.6 Paging ... page swapped out to disk is done in 4k incriments. ...
      (microsoft.public.windowsxp.general)