public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Martin Dalecki <dalecki@evision-ventures.com>
To: Martin Devera <devik@cdi.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sendto syscall is slow
Date: Tue, 16 Oct 2001 15:00:16 +0200	[thread overview]
Message-ID: <3BCC2F60.1753212@evision-ventures.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10110161438140.13894-100000@luxik.cdi.cz>

Martin Devera wrote:
> 
> Hello,
> 
> i'm doing new qos discipline developement and use own
> mesurment tool. It simply uses PF_PACKET and then
> doing sendto/recv simulating various flows.
> (I use both lo and eth0 where I short-connected RX-TX
>  pins in single ethcard)
> 
> I can't get beyond 25 000 packets per second. gprof:
> Each sample counts as 0.01 seconds.
>   %   cumulative   self              self     total
>  time   seconds   seconds    calls  ms/call  ms/call  name
>  35.67      5.39     5.39   498750     0.01     0.01  sendto
>  26.67      9.42     4.03  1000826     0.00     0.00  poll
>  19.06     12.30     2.88   498750     0.01     0.01  recv
> 
> Is there any faster way to force raw packets to kernel ? I need
> to push qos discipline to its edge but I can't because send
> syscall is bottleneck.
> Is it possible to tx multiple packets in sinhle call or should
> I extend kernel myself for this testing purpose ?

Increase the HZ constant in the kernel, which is determining the
sceduler frequency, which is apparently due to BH handling acting
as a low-pass filder for your siganls here. However please
beware of
many possible sideffects this may have on your system.

  reply	other threads:[~2001-10-16 13:06 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-13 18:26 2.4.13pre2aa1 Andrea Arcangeli
2001-10-15 17:31 ` new VM: what is classzone ? Martin Devera
2001-10-15 18:11   ` How many versions of VM are there? M. Edward (Ed) Borasky
2001-10-15 20:58     ` Slo Mo Snail
2001-10-15 21:15       ` Mike Fedyk
2001-10-15 22:24         ` Tim Moore
2001-10-15 22:29           ` Mike Fedyk
2001-10-15 22:41             ` Gerhard Mack
2001-10-16 11:23         ` snpe
2001-10-16 10:39           ` Very old kernel Kirill Ratkin
2001-10-16 13:30             ` David Weinehall
2001-10-16 12:45     ` sendto syscall is slow Martin Devera
2001-10-16 13:00       ` Martin Dalecki [this message]
2001-10-16 13:56         ` Martin Devera
2001-10-16 15:59       ` Francois Romieu
2001-10-16 16:08         ` Ref: zerocopy +netfilter performance problem Ravi Chamarti
2001-10-16 16:15         ` sendto syscall is slow Martin Devera
2001-10-16 17:02           ` Francois Romieu
2001-10-16 17:11             ` Martin Devera

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=3BCC2F60.1753212@evision-ventures.com \
    --to=dalecki@evision-ventures.com \
    --cc=devik@cdi.cz \
    --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