From: "Tiemen Schut" <tschut@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Kernel drops ethernet packets during disk writes
Date: Tue, 5 Sep 2006 18:06:18 +0200 [thread overview]
Message-ID: <86b122f40609050906u7aafe808h5002c9f15369a744@mail.gmail.com> (raw)
In-Reply-To: <86b122f40609050815v664ff217kcfc82a5c9f2772ad@mail.gmail.com>
Summary: The linux kernel appears to drop raw ethernet packets if
another process is writing to disk.
Test environment: Used a p4 1.7 GHz with gigabit interface
point-to-point connection to another p4 (windows pc). This windows PC
generates raw ethernet frames holding a counter and sends 'm on to the
linux PC, at a transfer rate of 350 Mbit/s. When not writing to disk,
everything goes quite fine. I can check the counters at the linux
side, and will notice a minimal packet loss (< 0.001 % or so).
However, for my application I want to write each and every frame to
disk. So, I created a second app, and through a fifo the receiver app
and the disk writer app communicate. Now I'm losing like 80% of my
packets :o Reducing the throughput on the network doesn't really help
(though it does help a little).
Note: I tried everything in the same app first, but my guess was that
the write operation delayed the app, so I decided to put everything in
two apps to give the scheduler some work ;) Didn't work though.
My guess would be that the kernel drops the packets because the write
operation takes to long (how long can it take, it's just a stupid 1512
bytes frame). Anyway, I tried to enlarge
.sys.net.core.netdev_max_backlog, but that didn't do the trick.
This problem occures on both 2.6.13 and 2.4.idontremember.
It kinda sucks, what's the use of receiving traffic if you can't write
it to disk?
I'm sending the packets using the winpcap library, and I'm receiving
the packets using the pcap library.
Any help would be _greatly_ appreciated, and if neccessary, please ask
for additional information/used software/test results/etc.
Tiemen Schut
PS: Personal CC's are okay with me, but if it's to much trouble never mind :)
next parent reply other threads:[~2006-09-05 16:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <86b122f40609050815v664ff217kcfc82a5c9f2772ad@mail.gmail.com>
2006-09-05 16:06 ` Tiemen Schut [this message]
2006-09-05 17:15 ` Alan Cox
[not found] ` <44FDCEB2.6070500@degler.net>
2006-09-05 20:21 ` Tiemen Schut
2006-09-06 12:40 ` Tiemen Schut
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=86b122f40609050906u7aafe808h5002c9f15369a744@mail.gmail.com \
--to=tschut@gmail.com \
--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®