Re: memory usage
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
Reply to:
- References:
- memory usage
- From: Samuel Thibault <samuel.thibault@ens-lyon.org>