2.4.14-pre8: 'free' still reports bogus 'cached' value.

2.4.14-pre8: 'free' still reports bogus 'cached' value.

Post by Andrew Morto » Tue, 06 Nov 2001 04:10:11




> It's a bug in the /proc code.  If buffercache pages exceed
> pagecache pages, `pg_size' flips negative.

> There doesn't seem to be any reason to subtract buffermem_pages
> from page_cache_size - they're independent.

Well that was crap, wasn't it?  Wrong kernel.

I wonder if it's due to the fact that grow_dev_page()
calls find_or_create_page(), but we increment the
buffermem_pages count unconditionally, whether or
not the page was newly created?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Unwanted Swapping in 2.4.14-pre8, no swapping in 2.4.14-pre6aa1

Yes. Currently, the kernel "tries" to keep the LRU list of pages with 90%
of mapped pages and 10% of cache when there is memory pressure.

By looking at mm/vmscan.c::shrink_cache() you can see:

        int max_scan = nr_inactive_pages / priority;
        int max_mapped = nr_pages << (9 - priority);

"max_scan" is the max. number of pages the kernel will scan on the
inactive list (the inactive list is usually 1/3 of the total amount of
pages) each time "shrink_cache()" is called.

"max_mapped" is the (roughly) maximum number of non-cache (anonymous)
pages the kernel will scan _before_ it tries to search for data to map to
swap. So basically right now we will scan

You should try to increase "max_mapped" to "nr_pages << (10 - priority)"
and so on until you get good tuning for your workload.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Extremely large file on small disk

3. difference between 'buff' and 'cached' in top + free + /proc/memstat

4. man pages?

5. SB 5.1 driver doesn't load, kernel 2.4.14

6. Where are the rest of the registers on a signal?

7. RH 7.2 w/ 2.4.14 kernel, can't access certain web sites

8. Losing secondary IDE after a shutdown

9. 2.4.14 doesn't compile: deactivate_page not defined in loop.c

10. ACPI: kbd-pw-on/WOL doesn't work anymore with 2.4.14

11. loop Device doesn't work in kernel 2.4.14

12. apache 1.3.1, mod_db, db 2.4.14 - apache won't compile

13. ACPI: kbd-pw-on/WOL doesn't work anymore with 2.4.14