* New offers for an ULOG module.
@ 2005-02-17 8:08 serjio
0 siblings, 0 replies; only message in thread
From: serjio @ 2005-02-17 8:08 UTC (permalink / raw)
To: netfilter-devel
Hello All,
I had a some problems with using ULOG module. You can found a
description of them in
my post at last month at
http://lists.gnumonks.org/pipermail/ulogd/2005-January/000687.html
In shortly there were troubles with data transmissions between ULOG
module and ULOGD daemon
program. I also was worried by repeteadly messages like "ipt_ULOG: can't
alloc whole buffer"
from my ULOG module. Due to this I was unable to check my network
traffic for 100%.
FYI: I have to control a large volume of traffic. It is about of 10Mbit
per second or higher.
So I think this module should be a bit modified to get around above
problems.
Please read my assumptions.
There will be an one large buffer for collecting headers of a packets.
This buffer will be shared between IRQ handler and userspace program.
Due to this we will not need
to use timers and kernel socket functions. Kernel module will just write
information
to this buffer and userspace programm will read one.
Here is some details about my idea.
1. Packet fetching
I offer to fetch only a particular fields from the packet IP header like:
source and destination IP addresses, protocol number, protocol ports
(for TCP and UDP cases)
and size of packet. It will much reduce a size of buffer.
2. Memory allocation and iteraction with an userscape program.
Also I would like to use memmory mapping for share data between module
and userspace program. I hope that using this technique instead of
netlink_broadcast
function will always deliver data to the userscape program. Since an
userspace program
is very much slower than IRQ handler I think that using a large buffer
can help
to make them work together. I think we need about of 2 Mbyte of RAM. It
is very pain that we
cannot allocate such memory in the kernel by using kmalloc or even
vmalloc function.
For my mind the reserving memory on boot time will be best choice.
Thanks a lot,
Sergei Filippov
---------------------
ISP EASTERA,
http://www.tajik.net
e-mail: serjio@tajik.net
ICQ: 308835322
Dushanbe. Tajikistan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-17 8:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-17 8:08 New offers for an ULOG module serjio
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.