Re: Network stack changes

2013-09-19 Thread Luigi Rizzo
On Thu, Sep 19, 2013 at 03:54:34PM -0400, George Neville-Neil wrote: > > On Sep 14, 2013, at 15:24 , Luigi Rizzo wrote: > > > > > > > On Saturday, September 14, 2013, Olivier Cochard-Labb? > > wrote: > > > On Sat, Sep 14, 2013 at 4:28 PM, Luigi

Re: Network stack changes

2013-09-14 Thread Luigi Rizzo
On Saturday, September 14, 2013, Olivier Cochard-Labbé wrote: > On Sat, Sep 14, 2013 at 4:28 PM, Luigi Rizzo wrote: >> >> IXIA ? For the timescales we need to address we don't need an IXIA, >> a netmap sender is more than enough >> > > The great netmap gener

Re: Network stack changes

2013-09-14 Thread Luigi Rizzo
On Fri, Sep 13, 2013 at 11:08:27AM -0400, George Neville-Neil wrote: > > On Aug 29, 2013, at 7:49 , Adrian Chadd wrote: ... > One quick note here. Every time you increase batching you may increase > bandwidth > but you will also increase per packet latency for the last packet in a batch. The o

Re: Network stack changes

2013-09-14 Thread Luigi Rizzo
On Fri, Sep 13, 2013 at 11:08:27AM -0400, George Neville-Neil wrote: > > On Aug 29, 2013, at 7:49 , Adrian Chadd wrote: ... > > I still have some tool coding to do with PMC before I even think about > > tinkering with this as I'd like to measure stuff like per-packet latency as > > well as top-le

Re: [PATCH] multiple instances of ipfw(4)

2013-06-10 Thread Luigi Rizzo
On Mon, Jun 10, 2013 at 06:52:01PM +0200, Ermal Lu?i wrote: > On Mon, Jun 10, 2013 at 5:01 PM, Luigi Rizzo wrote: ... > > if i understand well, this has no runtime overhead as the ifp has > > the index of the context it refers to ? > > Or you need an addi

Re: [PATCH] multiple instances of ipfw(4)

2013-06-10 Thread Luigi Rizzo
se dereferencing a NULL pointer ? cheers luigi while > -- > Ermal > ___ > freebsd-...@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org&quo

Re: Google Summer of Code 2013

2013-05-02 Thread Luigi Rizzo
tact the FreeBSD GSoC > administration team at soc-adm...@freebsd.org. > > Thanks, > > Gavin > -- -+--- Prof. Luigi RIZZO, ri...@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/. Universita` di Pisa TE

Re: Make kernel aware of NIC queues

2013-02-06 Thread Luigi Rizzo
On Wed, Feb 06, 2013 at 11:05:59AM -0500, George Neville-Neil wrote: > > On Feb 6, 2013, at 09:37 , Luigi Rizzo wrote: ... > > Linux has tried to come up with a common framework to implement > > this kind of controls using "ethtool", and we should probably > >

Re: Make kernel aware of NIC queues

2013-02-06 Thread Luigi Rizzo
On Wed, Feb 06, 2013 at 06:19:27PM +0400, Alexander V. Chernikov wrote: > Hello list! > > Today more and more NICs are capable of splitting traffic to different > Rx/TX rings permitting OS to dispatch this traffic on different CPU > cores. However, there are some problems that arises from using

Re: Replace bcopy() to update ether_addr

2012-08-22 Thread Luigi Rizzo
On Wed, Aug 22, 2012 at 03:21:06PM -0400, John Baldwin wrote: > On Wednesday, August 22, 2012 2:54:07 pm Adrian Chadd wrote: > > On 22 August 2012 05:02, John Baldwin wrote: > > > On Tuesday, August 21, 2012 12:34:42 pm Adrian Chadd wrote: > > >> Hi, > > >> > > >> What about just creating an ETHER

Re: speed tests (Re: Replace bcopy() to update ether_addr)

2012-08-22 Thread Luigi Rizzo
On Wed, Aug 22, 2012 at 05:26:47PM +0300, Mitya wrote: > 22.08.2012 17:36, Luigi Rizzo ??: > >On Wed, Aug 22, 2012 at 02:32:21AM +, Bruce Evans wrote: > >>luigi wrote: > >> > >>>even more orthogonal: > >>> > >>>I foun

speed tests (Re: Replace bcopy() to update ether_addr)

2012-08-22 Thread Luigi Rizzo
nging the length (-l ...) changes the speed, of course. For some reason my machine is fast for 8n+(0,1,2,3) and slow for 8n+(4,5,6,7). cheers luigi /* * Copyright (C) 2012 Luigi Rizzo. All rights reserved. * * Redistribution and use in source and binary forms, with or wit

Re: Replace bcopy() to update ether_addr

2012-08-21 Thread Luigi Rizzo
On Tue, Aug 21, 2012 at 12:26:30PM +0200, Marius Strobl wrote: ... > > Why we are use bcopy(), to copy only 6 bytes? > > Answer - in some architectures we are can not directly copy unaligned data. > > > > I propose this solution. > > > > In file /usr/src/include/net/ethernet.h add this lines: > >

Re: FreeBSD 10G forwarding performance @Intel

2012-07-03 Thread Luigi Rizzo
On Wed, Jul 04, 2012 at 12:31:56AM +0400, Alexander V. Chernikov wrote: > On 04.07.2012 00:27, Luigi Rizzo wrote: > >On Tue, Jul 03, 2012 at 09:37:38PM +0400, Alexander V. Chernikov wrote: > >... > >>Thanks, another good point. I forgot to merge this option from andre'

Re: FreeBSD 10G forwarding performance @Intel

2012-07-03 Thread Luigi Rizzo
On Tue, Jul 03, 2012 at 09:37:38PM +0400, Alexander V. Chernikov wrote: ... > Thanks, another good point. I forgot to merge this option from andre's > patch. > > Another 30-40-50kpps to win. not much gain though. What about the other IPSTAT_INC counters ? I think the IPSTAT_INC macros were intro

Re: FreeBSD 10G forwarding performance @Intel

2012-07-03 Thread Luigi Rizzo
On Tue, Jul 03, 2012 at 08:11:14PM +0400, Alexander V. Chernikov wrote: > Hello list! > > I'm quite stuck with bad forwarding performance on many FreeBSD boxes > doing firewalling. ... > In most cases system can forward no more than 700 (or 1400) kpps which > is quite a bad number (Linux does, s

Re: how to display C sources in Chromium (file:/// only)

2012-04-30 Thread Luigi Rizzo
On Mon, Apr 30, 2012 at 08:47:21AM -0700, Evan Martin wrote: > On Sat, Apr 28, 2012 at 7:47 AM, Luigi Rizzo wrote: > > (hoping this is of interest for hackers- too) > > > > One of the most annoying features of chromium is that it downloads > > instead of displaying var

how to display C sources in Chromium (file:/// only)

2012-04-28 Thread Luigi Rizzo
(hoping this is of interest for hackers- too) One of the most annoying features of chromium is that it downloads instead of displaying various types of files (.c, .h and so on). After a bit of investigation i found that at least for local files you can override this by defining your preferred mim

Re: iso2flash img

2012-03-22 Thread Luigi Rizzo
On Thu, Mar 22, 2012 at 05:42:27PM +0100, Thomas Schmitt wrote: > Hi, > > Vitaly Magerya : > > > you might want to try to dd the iso image directly onto USB instead; there > > > where talks that Ubuntu would support this starting at 11.10. > > Da Rock : > > Nada. Tried that and it didn't work. I'

Re: iso2flash img

2012-03-22 Thread Luigi Rizzo
On Wed, Mar 21, 2012 at 10:52:53AM -0500, Mark Felder wrote: > As an alternative I recently purchased a Zalman ZM-VE200 device (there's > also a USB3.0 flavor) that lets you copy ISOs to it and it will emulate a > CDROM/DVDROM/BDROM for you so you never have to deal with this mess again. > It

Re: iso2flash img

2012-03-22 Thread Luigi Rizzo
On Wed, Mar 21, 2012 at 11:11:42PM +1000, Da Rock wrote: ... > In the meantime I think I may have stumbled on the solution to the > script: In the midst of all the output it mentions "usage realpath [-q] > path". I wasn't 100% sure exactly what that meant, but I put the full > path to the iso an

Re: [PATCH] multiple instances of ipfw(4)

2012-01-31 Thread Luigi Rizzo
On Mon, Jan 30, 2012 at 01:01:13PM +0100, Ermal Lu?i wrote: > Hello, > > from needs on pfSense a patch for allowing multiple intances of > ipfw(4) in kernel to co-exist was developed. > It can be found here > https://raw.github.com/bsdperimeter/pfsense-tools/master/patches/RELENG_9_0/CP_multi_inst

Re: dummynet(4) kernel process CPU usage monitoring

2011-11-21 Thread Luigi Rizzo
On Mon, Nov 21, 2011 at 01:23:22PM +0700, Eugene Grosbein wrote: > Hi! > > I need to draw graph of dummynet's CPU usage. > "procstat -t 0" shows me TID (thread id) of dummynet kernel thread. > "ps -Hxo time,lwp" shows me total CPU time consumed by this thread. > > Now I see this time has 9 second

Re: intel checksum offload

2011-09-18 Thread Luigi Rizzo
On Sun, Sep 18, 2011 at 06:05:33PM -0400, Arnaud Lacombe wrote: > Hi, > > On Sun, Sep 18, 2011 at 5:06 PM, Luigi Rizzo wrote: > > On Sun, Sep 18, 2011 at 03:19:46PM -0400, Arnaud Lacombe wrote: > >> Hi, > >> > >> On Sat, Sep 17, 2011 at 4:32 PM, YongHyeo

Re: intel checksum offload

2011-09-18 Thread Luigi Rizzo
On Sun, Sep 18, 2011 at 03:19:46PM -0400, Arnaud Lacombe wrote: > Hi, > > On Sat, Sep 17, 2011 at 4:32 PM, YongHyeon PYUN wrote: > > On Sat, Sep 17, 2011 at 11:57:10AM +0430, Hooman Fazaeli wrote: > >> Hi list, > >> > >> The data sheet for intel 82576 advertises IP TX/RX checksum offload > >> but

Re: [GSoC]I want to remove everything perl/tcl/gtags in the new nvi

2011-07-13 Thread Luigi Rizzo
On Thu, Jul 14, 2011 at 01:22:49AM -0500, Zhihao Yuan wrote: > Hi hackers, > > I'm doing my GSoC project, "Multibyte Encoding Support in Nvi" at > https://github.com/lichray/nvi2 . Currently, the editor can support > read/display/write multibyte encoding through iconv. Before adding > more feature

Re: FreeBSD I/OAT (QuickData now?) driver

2011-06-11 Thread Luigi Rizzo
On Sat, Jun 11, 2011 at 04:49:17PM +0100, Robert Watson wrote: > > On Mon, 6 Jun 2011, grarpamp wrote: > > >I know we've got polling. And probably MSI-X in a couple drivers. Pretty > >sure there is still one CPU doing the interrupt work? And none of the > >multiple queue thread spreading tech e

Re: FreeBSD I/OAT (QuickData now?) driver

2011-06-06 Thread Luigi Rizzo
On Mon, Jun 06, 2011 at 10:13:51PM -0400, grarpamp wrote: > Is this work part of what's needed to enable the FreeBSD > equivalent of TNAPI? > > I know we've got polling. And probably MSI-X in a couple drivers. > Pretty sure there is still one CPU doing the interrupt work? > And none of the multipl

Re: Boot0cfg bug redux (Re: sys/boot/boot0/boot0.S - r186598)

2011-01-10 Thread Luigi Rizzo
On Tue, Jan 11, 2011 at 03:38:23AM +0300, Andrey V. Elsukov wrote: > On 11.01.2011 02:33, Luigi Rizzo wrote: > > As a consequence, if we reboot without pressing an F-key, the system > > boots from partition s1 even though the boot loader indicates F2. > > > So, to s

Boot0cfg bug redux (Re: sys/boot/boot0/boot0.S - r186598)

2011-01-10 Thread Luigi Rizzo
In order to understand the bug discussed in the recent thread (original message attached at the end), Tom Judge passed me the dump of the boot sector around the bug. The system giving trouble has the following configuration Fresh transcript: file1: ORIGINAL BOOT SECTOR # boot0cfg -v ad0 #

Re: sys/boot/boot0/boot0.S - r186598

2011-01-09 Thread Luigi Rizzo
On Sun, Jan 09, 2011 at 12:57:24PM -0600, Tom Judge wrote: > On 09/01/2011 12:33, Luigi Rizzo wrote: > > On Sun, Jan 09, 2011 at 12:39:28AM -0600, Tom Judge wrote: > >> Hi, > >> > >> Today I ran into an issue where setting the default slice with boot0cfg &g

Re: sys/boot/boot0/boot0.S - r186598

2011-01-09 Thread Luigi Rizzo
On Sun, Jan 09, 2011 at 12:39:28AM -0600, Tom Judge wrote: > Hi, > > Today I ran into an issue where setting the default slice with boot0cfg > -s is broken. a few questions inline: > This is related to a section of this revision: > > + commit Warner's patch "orb $NOUPDATE,_FLAGS(%bp)" > to av

Re: Slow disk access while rsync - what should I tune?

2010-11-08 Thread Luigi Rizzo
On Mon, Nov 08, 2010 at 04:47:40PM +0300, cronfy wrote: > Hello, > > > Might gsched(8) help ? > > I am using 7.3, there is no gsched as far as I know.. it actually works just fine there, just take the code from http://info.iet.unipi.it/~luigi/geom_sched/ cheers luigi > I am going to try gjourn

Re: an alternative to powerpoint

2010-07-24 Thread Luigi Rizzo
On Thu, Jul 22, 2010 at 05:19:25PM +0200, Oliver Fromme wrote: > Ivan Voras wrote: > > On 07/13/10 06:15, Luigi Rizzo wrote: > > > Have fun, it would be great if you could report how it works > > > on fancy devices (iphone, ipad, androids...) > > > >

Re: an alternative to powerpoint

2010-07-13 Thread Luigi Rizzo
On Wed, Jul 14, 2010 at 01:24:09AM +0200, Julian H. Stacey wrote: > Whoops I forgot cc hackers so resent. > > > > Haven't used it in years, but I liked it when I used > > > ports/misc/magicpoint. > > > > been there, done that: > > > > http://info.iet.unipi.it/~luigi/mgpm/ > > > > cheers > > lu

Re: an alternative to powerpoint

2010-07-13 Thread Luigi Rizzo
On Tue, Jul 13, 2010 at 04:36:50PM -, Larry Baird wrote: > In article <110613.02658.82...@localhost> you wrote: > > Maybe you all love powerpoint for presentations, but sometimes > > one just needs to put together a few slides, perhaps a few bullets > > or images grabbed around the net, so i wa

Re: an alternative to powerpoint

2010-07-13 Thread Luigi Rizzo
On Tue, Jul 13, 2010 at 04:17:06PM +0300, Peter Pentchev wrote: ... > Nice work indeed! > > Just as an aside, though - are you aware of Eric Meyer's S5, > also available in your friendly neighbourhood Ports Collection > as textproc/s5? :) yes, there are many such things -- and i have done a fair

Re: an alternative to powerpoint

2010-07-13 Thread Luigi Rizzo
On Mon, Jul 12, 2010 at 10:41:41PM -0700, Bakul Shah wrote: > On Tue, 13 Jul 2010 06:15:14 +0200 Luigi Rizzo wrote: > > Maybe you all love powerpoint for presentations, but sometimes > > one just needs to put together a few slides, perhaps a few bullets > > or images grabbed

an alternative to powerpoint

2010-07-12 Thread Luigi Rizzo
Maybe you all love powerpoint for presentations, but sometimes one just needs to put together a few slides, perhaps a few bullets or images grabbed around the net, so i was wondering how hard would it be to do something that accepts a plain text file as input (without a ton of formatting) and lets

Re: svn commit: r204615 - head/sbin/newfs

2010-03-03 Thread Luigi Rizzo
On Wed, Mar 03, 2010 at 12:44:06AM -0800, Garrett Cooper wrote: ... > Maxim, > > Xin Li has a point. I ran some tests and the ad hoc parsing function > eats up more memory than expand_number(3) [*]: as someone reminded me, a static library only brings in the archive members you actually use, wher

Re: does Copyright on source files expire ?

2009-03-25 Thread Luigi Rizzo
On Wed, Mar 25, 2009 at 05:31:52AM -0400, David Schultz wrote: > On Wed, Mar 25, 2009, Luigi Rizzo wrote: > > Someone just asked me permission to move to a 3-clause BSD > > copyright some piece of software that I haven't touched in 10+ years. > > > > I said ye

does Copyright on source files expire ?

2009-03-25 Thread Luigi Rizzo
Someone just asked me permission to move to a 3-clause BSD copyright some piece of software that I haven't touched in 10+ years. I said yes, but then I was wondering what happens if the person listed is not responding or not reachable anymore: does copyright on source code expire, and if so, when

Re: write-only variables in src/sys/ - possible bugs

2009-02-02 Thread Luigi Rizzo
On Mon, Feb 02, 2009 at 08:42:32PM +0100, Christoph Mallon wrote: > Hi, > > I compiled a list of all local variables in src/sys/ (r188000), which > are only written to, but never read. This is more than the GCC warning, interesting list, thanks. Also, 700 entries is not a bad result considering

Re: Enhancing cdboot [patch for review]

2008-12-08 Thread Luigi Rizzo
On Mon, Dec 08, 2008 at 04:29:04PM -0800, Maxim Sobolev wrote: > Luigi Rizzo wrote: ... > >4. another nitpick -- the value you pass in %si to the MBR does not > > seem to point to anything useful. As discussed about boot0.S and > > the followup in the mailing lists,

Re: Enhancing cdboot [patch for review]

2008-12-08 Thread Luigi Rizzo
On Mon, Dec 08, 2008 at 02:40:41PM -0800, Maxim Sobolev wrote: > Hi, > > Below please find patch that enhances cdboot with two compile-time options: ... > Any comments/suggestions are appreciated. If there are no objections I > would like to commit the change. The long-term goal is to make > CDBOO

Re: btx/pxeboot problem

2008-12-02 Thread Luigi Rizzo
On Tue, Dec 02, 2008 at 01:48:17PM +0200, Danny Braniss wrote: > latest pxeboot (7.1): > mother-boardNIC/LOM CPU > - --- --- > Intel SWV25 em xeonworks fine > SUN X2200bgeamd works fine > DELL PE 2950 bcexeon

convert bootable freebsd or linux iso to bootable flash image

2008-11-25 Thread Luigi Rizzo
I have updated my iso2flash.sh script so that now it can convert both FreeBSD _and_ linux ISO images to flash images. For the latter, it uses a FAT filesystem, and puts a linux loader with syslinux, for which you can find a port at http://info.iet.unipi.it/~luigi/FreeBSD/index.html#syslinux-port

convert bootable freebsd iso to bootable flash image

2008-11-14 Thread Luigi Rizzo
Just in case people have a similar need, or can point me to better code to do the same job: i needed to convert a bootable FreeBSD iso image into a bootable flash image, and have come up with the following code (derived from PicoBSD). The nice part is that this is all done without requiring root p

Re: Documentation on writing a custom socket

2008-03-09 Thread Luigi Rizzo
On Sun, Mar 09, 2008 at 10:17:14AM +0100, Hans Petter Selasky wrote: > On Saturday 08 March 2008, Max Laier wrote: > > Am Sa, 8.03.2008, 11:33, schrieb Hans Petter Selasky: > > > I'm planning to create a new socket type in FreeBSD called AF_Q921, which > > > is > > > to be used for ISDN telephony.

Re: Pluggable Disk Scheduler Project

2007-10-17 Thread Luigi Rizzo
On Wed, Oct 17, 2007 at 03:09:35PM +0200, Ulf Lilleengen wrote: ... discussion on Hybrid vs. GEOM as a suitable location for ... pluggable disk schedulers > However, I'd hate to see the Hybrid effort go to waste :) I was hoping some > of the authors of the project would reply with their thoughts,

kernel headers dependency graph ? (systm.h tangle)

2007-02-08 Thread Luigi Rizzo
Hi, Is there a tool to produce a dependency graph for C headers ? If that matters (i.e. someone has already studied it), i am interested in the header situation in the FreeBSD kernel. It may be a well known thing, but i just realized that is entagled with and both bring in a lot of other header

Re: unique hardware identification

2007-02-01 Thread Luigi Rizzo
On Thu, Feb 01, 2007 at 11:38:51AM -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > Peter Jeremy <[EMAIL PROTECTED]> writes: > : On Sun, 2007-Jan-28 10:39:36 -0600, Jon Passki wrote: > : >If the machine is a PXE-compliant device [2], it should have a GUID/ > : >UUID [1]

syslog bug ? (was Re: [PATCH] add header "pppoe:" in ng_pppoe.c printfs)

2006-08-05 Thread Luigi Rizzo
On Sat, Aug 05, 2006 at 12:42:12AM +0100, Joao Barros wrote: ... > I patched and recompiled the kernel. > After booting I notice that no messages from ppp are logged by syslog > (messages|ppp.log) What is your OS version ? i hit a similar problem some time ago, and it seems that the syslog client

Re: Boot manager beep (revisited)

2006-05-01 Thread Luigi Rizzo
On Mon, May 01, 2006 at 01:15:44PM +0300, Giorgos Keramidas wrote: ... > I'd certainly prefer it if the beep was turned *off* by default, > but I'm not sure if that's what everyone prefers. This is why I > opted for keeping the current behavior and making my personal > preference an option :) i d

Re: IO schedulers in FBSD...

2005-09-15 Thread Luigi Rizzo
On Thu, Sep 15, 2005 at 07:52:15PM +0530, Pranav Peshwe wrote: ... > Thank you very much for the name and the source > link.Is there any documentation available on this > topic(fbsd io schedulers) ? > Where is the io scheduler located in the > src code tree ? see http://wikitest.freebsd.org/moin.c

Re: IO schedulers in FBSD...

2005-09-15 Thread Luigi Rizzo
On Thu, Sep 15, 2005 at 06:45:27PM +0530, Pranav Peshwe wrote: > Hello, > Which is the I/O scheduler used by FBSD 5.4 ? > I googled in various ways but could not get an answer. it is called FCFSUSIIABPIWCTTOIS, which stands for First Come First Serve Unless Someone Is In A Better Position

Re: 5.4 -- bridging, ipfw, dot1q

2005-08-12 Thread Luigi Rizzo
On Sat, Aug 13, 2005 at 12:49:56AM +0200, Jeremie Le Hen wrote: > Hi, > > > I am afraid the existing code cannot help you. > > The packets you see are encapsulated in 802.1q aka VLAN frames, > > and since ipfw2 does not try to decapsulate the packets, you > > don't get to see the IP headers. > >

Re: 5.4 -- bridging, ipfw, dot1q

2005-08-12 Thread Luigi Rizzo
I am afraid the existing code cannot help you. The packets you see are encapsulated in 802.1q aka VLAN frames, and since ipfw2 does not try to decapsulate the packets, you don't get to see the IP headers. Your most reasonable option would be to write a new ipufw2 opcode, say something like 'vlan-d

Re: Nagios and threads

2005-06-22 Thread Luigi Rizzo
reading also the continuation of this mail thread, I wonder if there is any relationship with this issue i found a few days ago debugging asterisk. It happens when linking the code with libc_r, but maybe some of the bugs in libc_r were also imported in other thread libraries. cheers

Re: Loadable Scheduler in Freebsd

2004-11-06 Thread Luigi Rizzo
On Sat, Nov 06, 2004 at 11:21:23AM -0800, John-Mark Gurney wrote: > Devesh Shah wrote this message on Thu, Nov 04, 2004 at 15:22 -0800: > > Based on the SYSINIT framework, I have made ULE scheduler as a loadable module but > > have not quite > > figured how to migrate from default 4bsd to newly lo

Re: bridge callbacks in if_ed.c? (My pov)

2004-09-05 Thread Luigi Rizzo
On Sun, Sep 05, 2004 at 02:37:31PM -0700, Matthew Dillon wrote: > Well, wait a second... are we talking about a lot of packets being > discarded by the filter in 'normal' operation, or are we talking about > an attack? Because if we are takling about an attack the LAST ethernet ... Su

Re: bridge callbacks in if_ed.c?

2004-09-05 Thread Luigi Rizzo
On Mon, Sep 06, 2004 at 03:01:00AM +0400, Gleb Smirnoff wrote: ... > L> I'd rather not apply the patch unless you can show that > L> the current code leads to incorrect behaviour. > > I suspect that packets dropped by bridge_in() called from if_ed will > not be captured by bpf(4). This is incorrec

Re: bridge callbacks in if_ed.c?

2004-09-05 Thread Luigi Rizzo
On Mon, Sep 06, 2004 at 12:52:49AM +0400, Gleb Smirnoff wrote: > Luigi, > > I see that bridge callbacks are still living in if_ed.c > from FreeBSD 2.x times. See if_ed.c:2816. I think this is > not correct. > > Bridge code is called from ether_input(), which is > indirectly called from if_ed.c:

Re: indent bugfix / added features

2004-06-11 Thread Luigi Rizzo
On Fri, Jun 11, 2004 at 05:20:19PM +0200, Jens Schweikhardt wrote: ... > Sigh. A request for a little bit of QA and an emoticon as well and > I'm criticised. I remember when I was not yet a committer that the > better I could demonstrate that the code has no ill-effect the more > chances some commi

Re: indent bugfix / added features

2004-06-11 Thread Luigi Rizzo
On Fri, Jun 11, 2004 at 04:07:40PM +0200, Jens Schweikhardt wrote: > On Thu, Jun 10, 2004 at 09:53:07PM -0500, Chip Norkus wrote: ... > # normalize the code a bit. In doing so I discovered a few deficencies in > # the stock FreeBSD (5.2-CURRENT) indent and decided to fix them, I > # thought these

Re: ipfw cached ucred patch

2004-06-02 Thread Luigi Rizzo
On Wed, Jun 02, 2004 at 03:14:43PM -0700, Christian S.J. Peron wrote: > > I understand what you are saying. The only real other choice > would be to copy out the entire cr_groups array. Do you know > if this copy would be more expensive then the mutex lock/unlock > associated with grabbing a refe

Re: make(1) guru question

2004-04-06 Thread Luigi Rizzo
On Tue, Apr 06, 2004 at 08:26:00PM +0200, Jens Schweikhardt wrote: > Fellow hackers, > > suppose you have a long list of files in a make variable V, exceeding > kern.argmax. This means there is no way you can write a rule where $(V) > is a command argument in any way shape or form. There is also n

Re: Adding an IPFW rule from C program

2004-03-03 Thread Luigi Rizzo
On Wed, Mar 03, 2004 at 07:37:06AM +, Matt wrote: > Tried this on the ipfw list but didnt get any response. > > Part of an app I am playing with needs to be able to add an ipfw > rule. I had though i got all of what i need from ipfw2.c and ip_fw.h > but I am painfully new to C and must be mis

Re: em0, polling performance, P4 2.8ghz FSB 800mhz

2004-03-03 Thread Luigi Rizzo
On Wed, Mar 03, 2004 at 10:03:11AM -0500, Andrew Gallatin wrote: > > Don Bowman writes: > > > I'm not sure what affect on fxp. fxp is inherently limited > > by something internal to it, which prevents achieving > > high packet rates. bge is the best chip, but doesn't but you should not compa

munmap.2 inconsistency ?

2004-02-06 Thread Luigi Rizzo
hi, browsing through the munmap() page, it says Munmap() will fail if: [EINVAL] The addr parameter was not page aligned, the len ... now, i have verified that munmap works fine with any address returned by mmap, even if not aligned, at least on a recent

Re: send(2) does not block, send(2) man page wrong?

2004-01-26 Thread Luigi Rizzo
On Mon, Jan 26, 2004 at 10:53:54AM -0800, Julian Elischer wrote: ... > On Mon, 26 Jan 2004, Stuart Pook wrote: > > > > On 23 Jan 2004, Don Lewis wrote: > > > > the send does not give an error: the packet is just thrown away. > > > > > > Which is the same result as you would get if the bottleneck

Re: XL driver checksum producing corrupted but checksum-correct packets

2004-01-24 Thread Luigi Rizzo
On Sat, Jan 24, 2004 at 02:12:12PM -0500, Robert Watson wrote: ... > > but going this way you have no idea on what the driver does, including > > enabling hw checksums. This looks like a useless test at least for the > > purpose of finding out what is going wrong > > Actually, I'm more curious abo

Re: XL driver checksum producing corrupted but checksum-correct packets

2004-01-24 Thread Luigi Rizzo
On Sat, Jan 24, 2004 at 01:38:37PM -0500, Robert Watson wrote: ... > (2) Try the NDIS driver with the NDIS-u-lator on FreeBSD 5.x and see if > that also has the problem. but going this way you have no idea on what the driver does, including enabling hw checksums. This looks like a useless test

Re: send(2) does not block, send(2) man page wrong?

2004-01-23 Thread Luigi Rizzo
On Fri, Jan 23, 2004 at 06:09:20PM +0100, Andre Oppermann wrote: ... > >>send() for UDP should block if the socket is filled and the interface > >>can't drain the data fast enough. > > > > It doesn't (at least I cannot make it block) > > This stuff is rather complex. A send() on a UDP socket pro

Re: syslog

2004-01-04 Thread Luigi Rizzo
On Sun, Jan 04, 2004 at 02:15:18AM +0700, Eugene Grosbein wrote: > Hi! > > [EMAIL PROTECTED] wrote 8 years ago in src/lib/libc/gen/syslog.c: > > p += sprintf(p, "%.15s ", ctime(&now) + 4); > > What is '+ 4' for? quite likely it is to skip the 'day of week' field -- the ctime manpage says

Re: natd + ipfw question

2003-12-24 Thread Luigi Rizzo
On Wed, Dec 24, 2003 at 08:39:45AM -0500, Leo Bicknell wrote: ... > Now that I've used IPFW2 for something more complicated than simple > host filtering I see that the syntax and structure makes something > like a firewall/nat box for any moderately interesting config way > too complicated with way

Re: natd + ipfw question

2003-12-24 Thread Luigi Rizzo
On Tue, Dec 23, 2003 at 03:17:12PM -0500, Leo Bicknell wrote: ... > I must not be clear on what "in" "out" "recv" and "xmit" mean, and > after reading the manual page 3 times I'm now even more confused. The names are reasonably intuitive... "in" matches packets on the INput path (basic

Re: ipfw/ipf IP filtering thoughts

2003-11-30 Thread Luigi Rizzo
On Sun, Nov 30, 2003 at 06:53:10AM -, Antti Louko wrote: > Generally, I like the (Free)BSD way of doing things. But the IP > filtering modules available for FreeBSD lack one feature when compared > to Linux way (ipchains and iptables). There is no "call" instruction by design in ipfw2. The re

RFC: proposed new builtin for /bin/sh (associative arrays)

2003-10-31 Thread Luigi Rizzo
[Not sure what is the appropriate forum to discuss this, so please redirect the discussion if you know where. I have Bcc-ed a few /bin/sh committers] I am trying to implement, in the most unintrusive way, something resembliung associative arrays in /bin/sh. I am not interested in syntactic sugar

suspect spl*() code in syscons.c

2003-10-21 Thread Luigi Rizzo
Hi, both -current and -stable have the following snippet of code in sys/dev/syscons/syscons.c:scclose(): { ... int s; if (SC_VTY(dev) != SC_CONSOLECTL) { ... s = spltty(); ... } spl

Re: hardclock interrupt deadlock

2003-10-16 Thread &#x27;Luigi Rizzo'
ers luigi > -Original Message- > From: Luigi Rizzo [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 16, 2003 11:49 AM > To: Michael Marchetti > Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' > Subject: Re: hardclock interrupt deadlock > > >

Re: hardclock interrupt deadlock

2003-10-16 Thread Luigi Rizzo
On Thu, Oct 16, 2003 at 11:17:50AM -0400, Michael Marchetti wrote: > Hi, > > We have encountered a problem where the system hangs. We are running a 4.7 > SMP kernel using kernel polling on a Dual Xeon with hyperthreading enabled puzzled on what you mean by "kernel polling" ... DEVICE_POLLING, if

Re: HZ = 1000 slows down application

2003-10-07 Thread Luigi Rizzo
To: [EMAIL PROTECTED] > Subject: Re: HZ = 1000 slows down application > > > On Mon, Sep 22, 2003 at 02:22:02PM -0700, Luigi Rizzo wrote: > > On Mon, Sep 22, 2003 at 02:43:40PM -0400, [EMAIL PROTECTED] wrote: > > ... > > > But now I noticed that my application is

Re: IPFW2

2003-09-23 Thread Luigi Rizzo
On Tue, Sep 23, 2003 at 12:28:07PM -0400, Matthew George wrote: ... > > you can count the traffic with dynamic rules (but this does not go > > to the logfile), not sure what you mean by 'see the transfered data file' > > from ipf(5): > > LOGGING >When a packet is logged, with either the

Re: HZ = 1000 slows down application

2003-09-22 Thread Luigi Rizzo
On Mon, Sep 22, 2003 at 02:43:40PM -0400, [EMAIL PROTECTED] wrote: ... > But now I noticed that my application is occassionally doing slower > iterations. Average iteration time used to be 0.2 ms without polling > enabled. With the device polling changes, the average time is still around > the same

Re: IPFW2

2003-09-22 Thread Luigi Rizzo
On Mon, Sep 22, 2003 at 08:07:13PM +0200, Uwe Klann wrote: > Hi All, > > >From the Log file IPFW:- > "Sep 22 00:24:13 muc /kernel: ipfw: 3300 Accept TCP 217.10.213.30:4418 > 217.9.121.209:21 in via fxp0" > > How can I extend on FreeBSD 4.8 (ipfw2) the log contens to see the tranfered > data File

Re: can we disable AAAA queries in the resolver ?

2003-08-02 Thread Luigi Rizzo
On Sat, Aug 02, 2003 at 09:59:18AM +0100, David Malone wrote: > On Fri, Aug 01, 2003 at 11:52:00PM -0700, Luigi Rizzo wrote: > > My understanding is that there are multiple buggy components here: > > my ISP's nameserver certainly shouldn't behave so badly on > >

can we disable AAAA queries in the resolver ?

2003-08-01 Thread Luigi Rizzo
hi, recently i have been bitten by a problem which might be already known, but still... quite a few apps (sendmail and ssh among them) seem to always try an query if compiled with ipv6 support, and even if the kernel does not support ipv6, tcpdump shows queries going out to the nameserve

Re: Network pipes

2003-07-24 Thread Luigi Rizzo
On Thu, Jul 24, 2003 at 10:36:41AM -0700, John-Mark Gurney wrote: > Diomidis Spinellis wrote this message on Thu, Jul 24, 2003 at 14:04 +0300: > > separate command "netpipe". Netpipe takes as arguments the originating > > host, the socket port, the command to execute, and its arguments. > > Netp

Re: Network pipes

2003-07-24 Thread Luigi Rizzo
luigi On Thu, Jul 24, 2003 at 02:04:21PM +0300, Diomidis Spinellis wrote: > Luigi Rizzo wrote: > > * strange benchmark results! Given the description, I would expect > > the "|@ rsh" and "|@ ssh" cases to give the same throughput, and > > in any cas

Re: Network pipes

2003-07-24 Thread Luigi Rizzo
hi, i have the following questions: * strange benchmark results! Given the description, I would expect the "|@ rsh" and "|@ ssh" cases to give the same throughput, and in any case "| rsh" to be faster than "| ssh". How comes, instead, that the times differ by an order of magnitude ? Can

hints on shell string expansion ?

2003-07-07 Thread Luigi Rizzo
Hi, i need a bit of help from creative /bin/sh users... I am writing a script to generate ipfw test cases, and as part of the script i need to generate 'actions' which can be either one or more, e.g. a1="allow" a2="deny log" a3="pipe 10" Now, this works: for act in "$a1" "$a2" "$a3"; do

Re: High CPU usage on high-bandwidth long distance connections.

2003-03-19 Thread Luigi Rizzo
a write() or send(). With a high bandwidth-delay product, that chain > can get very long. > > This topic came up on freebsd-net last July, and Luigi Rizzo provided > the following URL for a patch to cache the end of the mbuf chain, so > sbappend() stays O(1) instead of O(n). the pa

Re: Realtek

2003-03-12 Thread Luigi Rizzo
On Wed, Mar 12, 2003 at 05:44:25PM +1100, Peter Jeremy wrote: ... > Are you sure you were generating "wire speed" packets - this is about > 200,000 packets/sec at Fast speed. "ping -f" runs at whatever rate 148,800kpps > In order to get 200,000 pps, you're going to need 5-10 hosts > generating t

Re: Realtek

2003-03-08 Thread Luigi Rizzo
On Fri, Mar 07, 2003 at 03:49:05PM -0600, Brandon D. Valentine wrote: ... > I have had good luck with the Adaptec Quartet 66 cards, under both Linux > and FreeBSD. YMMV, though. They come as 64-bit/66Mhz cards, which ... > controllers on it. Chances are if you really need a four-port card $300 >

Re: FreeBSD firewall for high profile hosts - waste of time ?

2003-01-16 Thread Luigi Rizzo
why don't you read the ipfw manpage, install IPFW2, and rewrite the ruleset using ipfw2 features (specifically the new syntax to specify address sets) and dynamic rules: something like hosts="{4,6,44,52,12,99,130,21,244}" ports="22,25,80,443" allow proto tcp src-ip 1.2.3.${hosts}/24 d

Re: net.inet.ip.dummynet.hash_size

2002-12-16 Thread Luigi Rizzo
On Mon, Dec 16, 2002 at 11:10:42AM +0200, mika ruohotie wrote: > > hello, > > ipfw man page says: > > buckets hash-table-size > Specifies the size of the hash table used for storing the various > queues. Default value is 64 controlled by the sysctl(8) variable >

Re: panic: icmp_error: bad length

2002-12-11 Thread Luigi Rizzo
the diagnosis looks reasonable, though i do not remember changing anything related to this between 4.6 and 4.7 so i wonder why the error did not appear in earlier versions of the code. icmp_error() consumes the mbuf so i believe it is ok to scramble it but one should double check. Note that NTOHS(

Re: out-of-order execution and code profiling

2002-11-25 Thread Luigi Rizzo
thanks a lot for the pointer to CPUID luigi On Mon, Nov 25, 2002 at 05:15:06PM -0800, Nate Lawson wrote: ... > The Intel processor manual has an explicit example for this and recommends > you use cpuid as a serializing instruction before the call to rdtsc. To Unsubscribe: send mail to

out-of-order execution and code profiling

2002-11-25 Thread Luigi Rizzo
Hi, I just got hit by a peculiar problem related to out-of-order execution of instructions. I was doing some low-level timing measurements using the rdtsc() around selected pieces of code (the rdtsc() is included in the TSTMP() functions that are in RELENG_4, source is in sys/i386/isa/clock.c), as

  1   2   3   4   >