mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vladimir B. Savkin" <master@sectorb.msk.ru>
To: Andi Kleen <ak@suse.de>
Cc: Jesper Dangaard Brouer <hawk@diku.dk>,
	Harry Edmon <harry@atmos.washington.edu>,
	linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: Network performance degradation from 2.6.11.12 to 2.6.16.20
Date: Mon, 18 Sep 2006 14:29:19 +0400	[thread overview]
Message-ID: <20060918102918.GA23261@tentacle.sectorb.msk.ru> (raw)
In-Reply-To: <p73eju94htu.fsf@verdi.suse.de>

On Mon, Sep 18, 2006 at 11:58:21AM +0200, Andi Kleen wrote:
> > > The x86-64 timer subsystems currently doesn't have clocksources
> > > at all, but it supports TSC and some other timers.
> > 
> 
> > until I hacked arch/i386/kernel/tsc.c
> 
> Then you don't use x86-64. 
> 
Oh. I mean I made arch/i386/kernel/tsc.c compile on x86-64
by hacking some Makefiles and headers. 

But the question is, why stock 2.6.18-rc7 could not use TSC on its own?

> > > > I've also had experience of unsychronized TSC on dual-core Athlon,
> > > > but it was cured by idle=poll.
> > > 
> > > You can use that, but it will make your system run quite hot 
> > > and cost you a lot of powe^wmoney.
> > 
> > Here in Russia electric power is cheap compared with hardware upgrade.
> 
> It's not just electrical power - the hardware is more stressed and will
> likely fail earlier too.  As a rule of thumb the hotter your hardware runs
> the earlier it will fail.

What hardware exactly. Doesn't it affect only CPU? And they are not
know to fail before any other components.
> > 
> > > > It seems that dhcpd3 makes the box timestamping incoming packets,
> > > > killing the performance. I think that combining router and DHCP server
> > > > on a same box is a legitimate situation, isn't it?
> > > 
> > > Yes.  Good point. DHCP is broken and needs to be fixed. Can you
> > > send a bug report to the DHCP maintainers? 
> > > 
> > > iirc the problem used to be that RAW sockets didn't do something
> > > they need them to do. Maybe we can fix that now.
> > 
> > Will try some days later.
> > 
> > Oh, and pppoe-server uses some kind of packet socket too, doesn't it?
> 
> The problem is not really using a packet socket, but using the SIOCGSTAMP
> ioctl on it. As soon as someone issues it the system will take accurate 
> time stamps for each incoming packet until the respective socket is closed.
> 
> Quick fix is to change user space to use gettimeofday() when it reads
> the packet instead.

Ok, thank you, I now understand.

> 
> For netdev: I'm more and more thinking we should just avoid the problem
> completely and switch to "true end2end" timestamps. This means don't
> time stamp when a packet is received, but only when it is delivered
> to a socket. The timestamp at receiving is a lie anyways because
> the network hardware can add an arbitary long delay before the driver interrupt
> handler runs. Then the problem above would completely disappear. 
> Comments? Opinions? 
> 
> -Andi
> 
~
:wq
                                        With best regards, 
                                           Vladimir Savkin. 


  reply	other threads:[~2006-09-18 10:29 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-16 16:01 Harry Edmon
2006-06-17 22:35 ` Andrew Morton
2006-06-17 23:23   ` Harry Edmon
2006-06-17 23:56     ` Andrew Morton
2006-06-18  3:16       ` Stephen Hemminger
2006-06-18 23:23         ` Harry Edmon
2006-06-19 13:54         ` Harry Edmon
2006-06-20  2:11           ` Herbert Xu
2006-06-19 14:47     ` Jesper Dangaard Brouer
2006-06-19 15:24       ` Andi Kleen
2006-06-19 17:34         ` Chris Friesen
2006-06-19 20:39           ` Andi Kleen
2006-06-19 18:24         ` Jesper Dangaard Brouer
2006-06-25 21:51           ` Harry Edmon
2006-06-26  4:20             ` Bill Fink
2006-06-25 22:22         ` Willy Tarreau
2006-06-26  5:23           ` Andi Kleen
2006-07-04 11:41             ` Jesper Dangaard Brouer
2006-07-04 11:54               ` Andi Kleen
2006-07-10 10:55                 ` Jesper Dangaard Brouer
2006-09-16 12:08         ` Vladimir B. Savkin
2006-09-18  8:35           ` Andi Kleen
2006-09-18  9:03             ` Vladimir B. Savkin
2006-09-18  9:58               ` Andi Kleen
2006-09-18 10:29                 ` Vladimir B. Savkin [this message]
2006-09-18 11:27                   ` Andi Kleen
2006-09-18 15:38                     ` Alexey Kuznetsov
2006-09-18 15:54                       ` Andi Kleen
2006-09-18 16:28                         ` Alexey Kuznetsov
2006-09-18 16:50                           ` Andi Kleen
2006-09-18 21:03                             ` Alexey Kuznetsov
2006-09-18 21:22                               ` David Miller
2006-09-18 21:46                                 ` Alexey Kuznetsov
2006-09-19  5:55                                 ` Andi Kleen
2006-09-19 20:31                                 ` Thomas Graf
2006-09-19 20:43                                   ` Andi Kleen
2006-09-19  5:52                               ` Andi Kleen
2006-09-18 21:18                             ` Vladimir B. Savkin
2006-09-18 22:00                               ` Alexey Kuznetsov
2006-09-18 21:57                                 ` David Lang
2006-09-19 19:40                                   ` David Miller
2006-09-19 19:44                                     ` Stephen Hemminger
2006-09-18 22:03                                 ` Vladimir B. Savkin
2006-09-19 19:41                                   ` David Miller
2006-09-19 19:47                                 ` David Miller
2006-09-22 15:35                                   ` Alexey Kuznetsov
2006-09-22 15:43                                     ` Andi Kleen
2006-09-22 16:51                                       ` Rick Jones
2007-03-06 13:25                                         ` Packet timestamps (was: Re: Network performance degradation from 2.6.11.12 to 2.6.16.20) Vladimir B. Savkin
2007-03-06 14:38                                           ` Eric Dumazet
2007-03-06 14:43                                             ` Vladimir B. Savkin
2007-03-06 15:16                                               ` Eric Dumazet
2007-03-06 18:15                                                 ` Vladimir B. Savkin
2006-09-18 21:08                     ` Network performance degradation from 2.6.11.12 to 2.6.16.20 Vladimir B. Savkin
2006-09-18 14:09                 ` David Miller
2006-09-18 14:29                   ` Andi Kleen
2006-09-18 15:19                     ` Alan Cox
2006-09-18 15:19                       ` Andi Kleen
2006-06-19 16:40       ` Harry Edmon

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=20060918102918.GA23261@tentacle.sectorb.msk.ru \
    --to=master@sectorb.msk.ru \
    --cc=ak@suse.de \
    --cc=harry@atmos.washington.edu \
    --cc=hawk@diku.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@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®