[Q] vmalloc and interrupt handler

From: Tsuyoshi (bz800k_at_hotmail.com)
Date: 04/22/04

  • Next message: tcs: "kernel thread"
    Date: 21 Apr 2004 19:37:33 -0700
    
    

    Hi.
    I'm trying to write a simple device driver using a lot of memory.
    It seems that vmalloc() is not available in interrupt handler, because
    it may sleep.

    So, I changed my code such that vmalloc() is only called in driver's open function,
    and interrupt handler only access the memory already allocated by vmalloc().

    Then I have a question.
    Does this memory area allocated by vmalloc() have a possibility to be paged out?
    If this area paged out, interrupt handler cannot access the area(because
    interrupt handler must sleep until page-in handler done.)

    Please help me.
    Thanks !!!


  • Next message: tcs: "kernel thread"

    Relevant Pages

    • Re: [Q] vmalloc and interrupt handler
      ... > Does this memory area allocated by vmalloc() have a possibility to be paged out? ... > If this area paged out, interrupt handler cannot access the area(because ... rearranges page tables so that the memory looks continuous. ... If you would use kmalloc, the returned memory would be really continuous, ...
      (comp.os.linux.development.system)
    • [patch 3/4] mm: document missing fields for /proc/meminfo
      ... Memory which is actively being written back to the disk ... PageTables: amount of memory dedicated to the lowest level of page ... VmallocUsed: amount of vmalloc area which is used ...
      (Linux-Kernel)
    • Re: [PATCH 4/4] fdtable: Implement new pagesize-based fdtable allocation scheme.
      ... regardless of the size results in massive memory usage deltas. ... need the amortized power-of-two table area increase? ... I think that for such applications, the 'waste' of ram for fd table is ... vmalloc also tried to use power-of-two allocation sizes. ...
      (Linux-Kernel)
    • Re: hash table sizes
      ... Would it make sense to use vmalloc on these architectures. ... > distribute the memory references across as many nodes as possible - at least in theory. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [rfc][patch] dynamic resizing dentry hash using RCU
      ... So I introduce a new method for resizing hash tables with RCU, ... It should also be able to shrink under memory pressure, ... A pity it uses vmalloc memory for the moment. ... time is to add the possibility for vmallocto use hugepages ...
      (Linux-Kernel)