Messages in this thread | | | Date | Fri, 17 Mar 2000 16:11:56 -0800 (PST) | From | David Whysong <> | Subject | Re: Overcommitable memory?? |
| |
On Fri, 17 Mar 2000, James Sutherland wrote: >On Fri, 17 Mar 2000, David Whysong wrote:
>> what do you mean by "free" memory? > >Well, the kernel's definition is: >free = (buffermem >> PAGE_SHIFT) + (page_cache_size + nr_free_pages + > nr_swap_pages) - (page_cache.min_percent + buffer_mem.min_percent > +2)*num_physpages/100; > >It then returns (free > pages), where pages was the number of pages >requested. (If sysctl_overcommit_memory is non-zero, it ALWAYS returns 1, >bypassing the above checks.)
Ok, this makes sense.
>Close - but it's not the TOTAL RAM+swap, it's the FREE RAM+swap. Your >experiment indicated you had managed to malloc() more than this, though, >even with sysctl_overcommit_memory == 0?
Not when you subtract out buffer memory and the page cache, as above...
Dave
David Whysong dwhysong@physics.ucsb.edu Astrophysics graduate student University of California, Santa Barbara My public PGP keys are on my web page - http://www.physics.ucsb.edu/~dwhysong DSS PGP Key 0x903F5BD6 : FE78 91FE 4508 106F 7C88 1706 B792 6995 903F 5BD6 D-H PGP key 0x5DAB0F91 : BC33 0F36 FCCD E72C 441F 663A 72ED 7FB7 5DAB 0F91
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |