linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: alan@lxorguk.ukuu.org.uk, davem@dm.cobaltmicro.com,
	linux-mm@kvack.org, Stephen Tweedie <sct@redhat.com>
Subject: Re: Notebooks
Date: Wed, 19 Aug 1998 10:45:36 +0100	[thread overview]
Message-ID: <199808190945.KAA00835@dax.dcs.ed.ac.uk> (raw)
In-Reply-To: <199808182138.OAA00489@penguin.transmeta.com>

Hi,

On Tue, 18 Aug 1998 14:38:07 -0700, Linus Torvalds
<torvalds@transmeta.com> said:

> Ok, I found this.

> Once more, it was the slab stuff that broke badly.  I'm going to
> consider just throwing out the slabs for v2.2 unless somebody is willing
> to stand up and fix it - the multi-page allocation stuff just breaks too
> horribly. 

    /* If the num of objs per slab is <= SLAB_MIN_OBJS_PER_SLAB,
     * then the page order must be less than this before trying the next order.
     */
    #define	SLAB_BREAK_GFP_ORDER_HI	2
    #define	SLAB_BREAK_GFP_ORDER_LO	1

replace orders with 0; no more unnecessary higher-order allocations.  We
want this to be configurable at boot time, however; the extra efficiency
may be worth it on larger memory machines.  Linus, I'll do this if you
want it: default all the BREAK orders to 0 and add a boot option to
increase it.

> In this case, TCP wanted to allocate a single skb, and due to slabs this
> got turned into a multi-page request even though it fit perfectly fine
> into one page.  Thus a critical allocation could fail, and the TCP layer
> started looping - and kswapd could never even try to fix it up because
> the TCP code held the kernel lock. 

If the network stack can loop on an allocation without dropping the
lock, then even single-page allocations can deadlock.  (If there's a lot
of dirty data in swap, kswapd can quite easily block with no free pages
present for a time, especially if there is high network load at the
time.)

--Stephen
--
This is a majordomo managed list.  To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org

  reply	other threads:[~1998-08-19 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <19980814115843.43989@orci.com>
     [not found] ` <m0z88bh-000aNFC@the-village.bc.nu>
1998-08-18 21:38   ` Notebooks Linus Torvalds
1998-08-19  9:45     ` Stephen C. Tweedie [this message]
1998-08-19 14:20     ` Notebooks David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199808190945.KAA00835@dax.dcs.ed.ac.uk \
    --to=sct@redhat.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davem@dm.cobaltmicro.com \
    --cc=linux-mm@kvack.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox