Allocating kernel memory

From: George Nelson (grn_at_freeuk.com)
Date: 05/06/04

  • Next message: Juha Laiho: "Re: "Headless" Linux & agetty Issues"
    Date: 6 May 2004 10:41:34 -0700
    
    

    Other than the amount of free memory available, is there a limit to
    how much memory a driver can allocate (in total, not as a single
    request)? I am working on a driver that requires large amounts of
    memory and although I have 2GB on my system, the total memory my
    driver seems to be able to allocate is around 620MB. Most of the 2GB
    are free when my driver loads (from a sysinfo call), I am running very
    little in user space and very light load on the file system so I can't
    understand why my memory requests fail at the 620MB limit.

    I would appreciate any pointers as to how I can get more memory. The
    driver uses a number of slab caches from which it makes allocations
    although the largest requests are for I/O buffers where I allocate
    using get_free_pages.

    Many thanks in advance,

    George Nelson


  • Next message: Juha Laiho: "Re: "Headless" Linux & agetty Issues"

    Relevant Pages

    • Re: Memory fragmentation issue in kernel mode
      ... My direct I/O requests are asynchronous ones with 4 parallel ... Memory usage of the applications were looking normal. ... fragmentation, which is actually fragmentation of the system virtual ... application which will be accessing my device to test the driver. ...
      (microsoft.public.development.device.drivers)
    • Re: non-paged memory inside a kernel driver
      ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... With their stuff running I cannot allocate 10 MB 's on a XP system. ... so I need 100MB of non-paged memory inside my driver. ...
      (microsoft.public.development.device.drivers)
    • Re: Memory fragmentation issue in kernel mode
      ... Also, on the Performance tab, watch the Kernel Memory section. ... fragmentation, which is actually fragmentation of the system virtual ... A user level application doesn't allocate and even access the ... I have my driver that uses direct IO to perform data transfer ...
      (microsoft.public.development.device.drivers)
    • Re: non-paged memory inside a kernel driver
      ... I've seen kernel memory leaks up to full memory exaustion when Symantec AV ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... With their stuff running I cannot allocate 10 MB 's on a XP system. ...
      (microsoft.public.development.device.drivers)
    • Re: Memory allocation in windows kernel driver
      ... in an allocated zone of memory. ... I have to allocate a space of about 255 kBytes. ... I would strongly recomend you take a class on driver development. ... It is possible to create a pointer to an array of pointers to memorize ...
      (microsoft.public.development.device.drivers)