Re: [PATCH] [Request for inclusion] Filesystem in Userspace

From: Pavel Machek (pavel_at_ucw.cz)
Date: 11/19/04

  • Next message: Joshua Kwan: "[2.6.10-rc2] In-kernel swsusp broken"
    Date:	Fri, 19 Nov 2004 10:46:20 +0100
    To: Miklos Szeredi <miklos@szeredi.hu>
    
    

    Hi!

    > > The GFP_IO and GFP_FS pages are the _real_ protectors. They don't dip into
    > > the (very limited) set of pages, they say "we can still free 90% of
    > > memory, we just have to ignore that dangerous 10%".
    >
    > I don't see how this makes more problems to userspace filesystems.
    > When you clear GFP_IO or GFP_FS for an allocation you are limiting
    > yourself from freeing some sort of memory. But that will not make it
    > easier to actually _get_ that memory.
    >
    > With FUSE the allocation is NOT limited. Deadlock will not happen
    > since page writeback is non-blocking, so while more FUSE backed pages
    > can't be written, other filesystem's pages can be written back. The
    > situation is better not worse.
    >
    > What am I missing?

    I believe problem is when there are no other filesystem's
    pages.... and at that point FUSE is worse than kernel filesystems
    because you do not have reserved pools to use for freeing memory.

                                                                    Pavel

    -- 
    People were complaining that M$ turns users into beta-testers...
    ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Joshua Kwan: "[2.6.10-rc2] In-kernel swsusp broken"

    Relevant Pages

    • Re: *** glibc detected *** ./a.out: double free or corruption
      ... Sometimes i have problems when freeing the memory of certain ... NULL invokes undefined behavior. ... returned from malloc and again when it is received by removeFPage. ...
      (comp.lang.c)
    • Re: memory fragmentation on Linux 64b (Suse)
      ... Consider this small program, allocating a number of 100,000 Bytes memory ... blocks and than freeing every second of them. ... Automatic trimming is mainly useful in long-lived programs. ... The trim threshold and the mmap control parameters ...
      (comp.unix.programmer)
    • Re: Why it is not good code for constructor
      ... How can C's destructor free the memory? ... responsible for freeing it, but C::~C will not be called, and a function-try ... handler cannot access the pointer, while a catch handler in local scope will ... now if new intcompletes ok, but the constructor for A throws, the ...
      (microsoft.public.vc.language)
    • Re: [linux-pm] Re: swsusp: Not enough free pages
      ... Thanks Pavel, this hack works. ... Freeing memory... ... ^Hdone ...
      (Linux-Kernel)
    • Re: [PATCH] [Request for inclusion] Filesystem in Userspace
      ... > memory, we just have to ignore that dangerous 10%". ... I don't see how this makes more problems to userspace filesystems. ... With FUSE the allocation is NOT limited. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)