Re: [PATCH] Re: simple FS application that hangs 2.4-test5, mem mgmt problem or FS buffer cache mgmt problem?

From: Roger Larsson (roger.larsson@norran.net)
Date: Wed Aug 02 2000 - 17:56:13 EST


Hi,

One thing to remember.
Working limits are lowered due to not running kswapd until ALL
zones have zone_wake_kswapd.

Maybe limits need to be refined (linux/mm/page_alloc.c)
also included in this patch is a patch to printout status
of zones.
This has lead me to the conclusion that kswapd can't be made
to handle the most intensive loads. It is easy force yourself
into a situation where both zone_wake_kswapd and low_on_memory
are set for all zones...

/RogerL

--- linux-2.4/mm/page_alloc.c.orig Wed Aug 2 17:55:53 2000
+++ linux-2.4/mm/page_alloc.c Wed Aug 2 22:38:00 2000
@@ -29,7 +29,7 @@ int nr_lru_pages;
 pg_data_t *pgdat_list;

 static char *zone_names[MAX_NR_ZONES] = { "DMA", "Normal", "HighMem" };
-static int zone_balance_ratio[MAX_NR_ZONES] = { 128, 128, 128, };
+static int zone_balance_ratio[MAX_NR_ZONES] = { 32, 128, 128, };
 static int zone_balance_min[MAX_NR_ZONES] = { 10 , 10, 10, };
 static int zone_balance_max[MAX_NR_ZONES] = { 255 , 255, 255, };

@@ -430,7 +430,8 @@ void show_free_areas_core(int nid)
                zone_t *zone = NODE_DATA(nid)->node_zones + type;
                unsigned long nr, total, flags;

- printk(" %s: ", zone->name);
+ printk(" %s %d%d: ", zone->name,
+ zone->zone_wake_kswapd, zone->low_on_memory);

                total = 0;
                if (zone->size) {

Rik van Riel wrote:
>
> On Wed, 2 Aug 2000 ying@almaden.ibm.com wrote:
>
> > No, it didn't fix it. I'm still getting "eth0: card reports no
> > resources" from my Intel express card and then system hang when
> > I ran SPEC SFS with high IOPS request rate, like 4000 IOPS. Is
> > this guess not tight enough?
>
> OK, then I guess the hang is caused by something else...
>
> Does your system hang hard, or can you still get output
> with eg. sysrq-p (so you can track down in which function
> the kernel is hanging) ?
>
> regards,
>
> Rik
> --
> "What you're running that piece of shit Gnome?!?!"
> -- Miguel de Icaza, UKUUG 2000
>
> http://www.conectiva.com/ http://www.surriel.com/
>
> -
> 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/

--
Home page:
  http://www.norran.net/nra02596/

- 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 : Mon Aug 07 2000 - 21:00:09 EST