All of lore.kernel.org
 help / color / mirror / Atom feed
* kswapd and MM overload fix
@ 2001-06-05 22:44 Andrea Arcangeli
  2001-06-05 23:16 ` Linus Torvalds
  0 siblings, 1 reply; 6+ messages in thread
From: Andrea Arcangeli @ 2001-06-05 22:44 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

Anybody running on a machine with some zone empty (<16Mbyte boxes (PDAs),
<1G x86 with highmem enabled kernel or an arch with an iommu like alpha)
probably noticed that the MM was unusable on those hardware
configurations (as I also incidentally mentioned a few times on l-k in
the last months).

Yesterday I checked and here it is the fix (included in 2.4.5aa3).

--- 2.4.5aa3/mm/vmscan.c.~1~	Sat May 26 04:03:50 2001
+++ 2.4.5aa3/mm/vmscan.c	Tue Jun  5 03:41:06 2001
@@ -791,6 +788,8 @@
 		for(i = 0; i < MAX_NR_ZONES; i++) {
 			int zone_shortage;
 			zone_t *zone = pgdat->node_zones+ i;
+			if (!zone->size)
+				continue;
 
 			zone_shortage = zone->pages_high;
 			zone_shortage -= zone->inactive_dirty_pages;

Andrea

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-06-06  7:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-05 22:44 kswapd and MM overload fix Andrea Arcangeli
2001-06-05 23:16 ` Linus Torvalds
2001-06-05 23:48   ` Andrea Arcangeli
2001-06-05 23:51     ` Linus Torvalds
2001-06-06  7:54       ` Xavier Bestel
2001-06-05 23:48   ` Roger Larsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.