mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jeff V. Merkey" <jmerkey@vger.timpanogas.org>
To: Andi Kleen <ak@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Gigabit Performance 2.4.19-preX - Excessive locks, calls, waits
Date: Mon, 4 Mar 2002 10:41:38 -0700	[thread overview]
Message-ID: <20020304104138.B31523@vger.timpanogas.org> (raw)
In-Reply-To: <20020304001223.A29448@vger.timpanogas.org.suse.lists.linux.kernel> <p731yf03ffe.fsf@oldwotan.suse.de>
In-Reply-To: <p731yf03ffe.fsf@oldwotan.suse.de>; from ak@suse.de on Mon, Mar 04, 2002 at 09:28:21AM +0100

On Mon, Mar 04, 2002 at 09:28:21AM +0100, Andi Kleen wrote:
> "Jeff V. Merkey" <jmerkey@vger.timpanogas.org> writes:
> 
> > /usr/src/linux/net/core/skbuff.c
> > 
> > //int sysctl_hot_list_len = 128;
> > int sysctl_hot_list_len = 1024;  // bump this value up
> > 
> 
> The plan was to actually to get rid of the skb hot list. It was just 
> a stop gap solution to get CPU local smp allocation before Linux had
> cpu local slab caches. The slab cache has been fixed and runs 
> cpu local now too, so there should be no need for it anymore as 
> the slab cache does essentially the same thing as the private hot list
> cache (maintaining linked lists of objects and unlinking them quickly
> on allocation and linking them again on free, all in O(1)) 
> 
> 
> > alloc_skb_frame with fixed 1514 + fragment list allocations, 
> > sysctl_hot_list_len = 1024.  
> 
> Something is bogus with your profile data. Increasing sysctl_hot_list_len
> never changes the frequency with which kmalloc/kfree are called. All
> it does is to produce less calls to kmem_cache_alloc() for the skb head,
> but the skb data portion is always allocated using kmalloc().  Your 
> new profile doesn't show kmalloc so you changed something else.
> 
> 
> -andi

Agree.  What's making the numbers get better is the fact I have 
removed calls to kmalloc/kfree in alloc_akb.  This extra code path
increases latency in these high speed adapters.  Reread the post.  I 
said changing the hot list eliminated a lot of packet overruns, not
calls to kmalloc/kfree.  The data is correct.

Jeff



  reply	other threads:[~2002-03-04 17:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020304001223.A29448@vger.timpanogas.org.suse.lists.linux.kernel>
2002-03-04  8:28 ` Andi Kleen
2002-03-04 17:41   ` Jeff V. Merkey [this message]
2002-03-04  7:12 Jeff V. Merkey
2002-03-04  8:16 ` Andrew Morton
2002-03-04 15:04 ` Alan Cox
2002-03-04 17:46   ` Jeff V. Merkey
2002-03-04 18:34     ` Alan Cox
2002-03-04 21:02       ` Jeff V. Merkey
2002-03-04 17:39 ` Martin Josefsson
2002-03-04 18:04   ` Jeff V. Merkey

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=20020304104138.B31523@vger.timpanogas.org \
    --to=jmerkey@vger.timpanogas.org \
    --cc=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®