[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memory usage
From: |
Samuel Thibault |
Subject: |
Re: memory usage |
Date: |
Mon, 6 Aug 2007 20:47:12 +0200 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Samuel Thibault, le Mon 06 Aug 2007 20:45:53 +0200, a écrit :
> I've ported xosview to GNU/Hurd and had a look during a gcc compilation:
> approximately only half the memory is used. I had a look at
> vm/vm_pageout.c and noticed:
>
> /* When vm_page_external_count exceeds vm_page_external_limit,
> * allocations of externally paged pages stops.
> */
>
> #ifndef VM_PAGE_EXTERNAL_LIMIT
> #define VM_PAGE_EXTERNAL_LIMIT(free) ((free) / 2)
> #endif /* VM_PAGE_EXTERNAL_LIMIT */
Mmm, actually it's worse:
/* Attempt to keep the number of externally paged pages less
* than vm_pages_external_target.
*/
#ifndef VM_PAGE_EXTERNAL_TARGET
#define VM_PAGE_EXTERNAL_TARGET(free) ((free) / 4)
#endif /* VM_PAGE_EXTERNAL_TARGET */
Samuel
- memory usage, Samuel Thibault, 2007/08/06
- Re: memory usage,
Samuel Thibault <=