filemap.c missguessing ammount of memory

From: Pavel Machek (pavel@suse.cz)
Date: Fri Jun 23 2000 - 04:48:35 EST


Hi!

Following code

RCS file: /cvsroot/linux-vr/linux/mm/filemap.c,v
retrieving revision 1.1.1.8
diff -u -r1.1.1.8 filemap.c
--- mm/filemap.c 2000/06/21 15:22:07 1.1.1.8
+++ mm/filemap.c 2000/06/23 09:42:41
@@ -2625,7 +2625,7 @@
 {
         unsigned long htable_size, order;
 
- htable_size = mempages;
+ htable_size = mempages; /* This is wrong with memory
with holes :-( */
         htable_size *= sizeof(struct page *);
         for(order = 0; (PAGE_SIZE << order) < htable_size; order++)
                 ;

Is just wrong on machines such as philips velo 1 which have memory
holes: too much ram is assigned to hash tables. I wonder if there's
easy way to fix this?
                                                                Pavel

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- 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/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:25 EST