Re: make of vic broken in current

1999-08-15 Thread Luigi Rizzo
excuse previous gibberish. i am at a loss as to how it happened, maybe vm dealing with a very long line. i hope it is not reproducable. -current as of 99.08.14 could it be the compiler was upgraded recently ? I wrote grabber-x11.cc but i am far from being C++ literate so the most i

problem with vnconfig -s labels ...

1999-08-20 Thread Luigi Rizzo
---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) http

Re: problem with vnconfig -s labels ...

1999-08-20 Thread Luigi Rizzo
can someone investigate this ? the code seems to work fine on 3.x Someone also sent me a report on that, so it's a real problem. I have a traceback, but without debugging symbols. it's so easy to reproduce that i hope the vm/vn gurus will not require too much effort to find the bug. in

Re: problem with vnconfig -s labels ...

1999-08-20 Thread Luigi Rizzo
Hi, I've found panics are more likely to occur if the command pair is executed in a script vs. from the command line. This may suggest some sort of race is occurring. no idea... i have always managed to panic the system even running the commands from the command line one at a time, so

Re: problem with vnconfig -s labels ...

1999-08-22 Thread Luigi Rizzo
About the vnconfig/disklabel problem, i don't understand one thing: the sequence that causes the reboot is the same used to produce the boot floppy images. How comes that it is still possible to produce snapshots for -current ? Are they cross-built on an older version of the system ?

An FS question perhaps... non blocking I/O.

1999-09-09 Thread Luigi Rizzo
e possible overhead for handling signals when a transfer is complete ? thanks luigi ---+----- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TE

Re: ESS 1868 driver (again)

1999-11-03 Thread Luigi Rizzo
I got the one email that said that there was some trouble with the ESS 1868 sound driver under FreeBSD-current. Is there an issue with -current and newpcm that is causing the 1868 sound driver to not work? Also, I'd guys, you should realize that the ESS1868 codecs (and friends) are

Re: ESS 1868 driver (again)

1999-01-02 Thread Luigi Rizzo
Luigi Rizzo [EMAIL PROTECTED] writes: guys, you should realize that the ESS1868 codecs (and friends) are extremely unfriendly to the programmer, and possibly (according to Sanpei comments) broken in their handling of auto-dma. ?? I wouldn't say the interface is *pretty

Re: Update of if_dc driver

1999-11-27 Thread Luigi Rizzo
On Thu, 25 Nov 1999, Bill Paul wrote: My goal is to try and get this driver into 4.0 as soon as possible so I can use it as a replacement for the al, ax, dm, pn and mx drivers. However, there's a small problem: the de driver already supports the 21143, although it does so poorly

any recent changes related to MD_ROOT ?

2002-10-17 Thread Luigi Rizzo
this ? Who builds up the '/dev/md0c' name for the root filesystem ? thanks luigi --+- Luigi RIZZO, [EMAIL PROTECTED] . ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley

mbuf header bloat ?

2002-11-21 Thread Luigi Rizzo
[Bcc to -net because it is relevant there. This email has been triggered by a private discussion i was having with other committers (who will easily recognise themselves :) which suggested the possibility of adding more fields to mbuf headers] Just recently came up to my attention that we have

Re: mbuf header bloat ?

2002-11-25 Thread Luigi Rizzo
be in and what should not. cheers luigi --+- Luigi RIZZO, [EMAIL PROTECTED] . ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2988

Re: mbuf header bloat ?

2002-11-25 Thread Luigi Rizzo
On Mon, Nov 25, 2002 at 01:39:02PM -0500, Andrew Gallatin wrote: ... widely used (at list now) thus failing the two main important criteria on a side note i notice my english is getting worse and worse, and i keep making mistakes as the one above. Sorry about that.

Re: bridging broken in -current AND -stable

2000-03-08 Thread Luigi Rizzo
Is it possible that bridging is broken in -current and -stable? no, but the "de" driver on bridging is now unsupported and i could not find the time to make it work after recent fixes to the bridging code. Ooo n! :-(( The best nic_s all around are unsupported? ;) let me

Re: bridging broken in -current AND -stable

2000-03-09 Thread Luigi Rizzo
let me doubt it. i have had a fair amount of trouble with these nics, maybe it's driver's fault, but still... anyways, the driver is not as easy to work on as others. For future investments: which nics do you recommend? (stable driver, speed...) fxp? probably, yes, though the whole

Re: NETGRAPH (proposal. FINAL)

2000-02-29 Thread Luigi Rizzo
This is good in theory, however the intel 82586 ethernet chip (and 596 in 586 mode) will overwrite anything you put there anyhow as it treats the header specially and fabricates it. (unless you are running in some mode that is not usually used). can you clarify this ? Looong ago i used the

Reading from bad disk ?

2000-03-21 Thread Luigi Rizzo
---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137

Re: Reading from bad disk ?

2000-03-21 Thread Luigi Rizzo
that data for _anything_ it is likely to be totally corrupted due to the drive trying to ECC correct it and what not... still might be useful for visual inspection. cheers luigi ---+- Luigi RIZZO, [EMAIL

Re: Reading from bad disk ?

2000-03-21 Thread Luigi Rizzo
Don't know. You'd have to ask IBM. All the above camcontrol is doing is reading a special mode page (I'm sure ken will correct me if I'm wrong)... Do ata drives have this concept? i think they do. cheers luigi To Unsubscribe: send mail to [EMAIL PROTECTED] with

Re: What is the status of the mmap support in the pcm driver?

2000-03-30 Thread Luigi Rizzo
[Charset koi8-r unsupported, filtering to ASCII...] Hi, Does anybody can clarify what is current status of the mmap support in the pcm driver? I'm trying to get sound in the quakeforge working, but only managed to get famous "dsp_mmap." message in kernel logs instead of sound :(. not

Re: burncd problem

2000-04-05 Thread Luigi Rizzo
this on the 8200 here :) cheers luigi ---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2

problem creating new kernels with 20000604 snap

2000-06-06 Thread Luigi Rizzo
, it panics. Is this a bug or a feature ? Should i just keep all the pieces in GENERIC and add my options there ? help appreciated. thanks luigi ---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing

HEADS UP- WF2Q and RED now available in -current

2000-06-08 Thread Luigi Rizzo
traffic, while still being able to use the full bandwidth configured for the pipe. Please email me if you make use of this feature, or you find bugs, etc. cheers luigi ---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip

Re: Scheduler changes?

2000-06-11 Thread Luigi Rizzo
Hi, i understand that this means maybe a somwthat large change in the system, but what do you think if we have a lok at implementing the CPU scheduler using weights instead of strict priorities ? Do we have parts of the kernel which rely on priority to implement locking etc ? This would not be

Re: setsockopt(IP_FW_ADD)

2000-06-11 Thread Luigi Rizzo
luigi ---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39

Re: 5.1-RELEASE TODO

2003-06-01 Thread Luigi Rizzo
| |--+-+-+-| | | | | There are reports of| | ipfw/ipfw2 | | | alignment problems with | | alignment issues | In progress | Luigi Rizzo | ipfw and/or ipfw2 on| | on alpha/sparc64 | | | 64-bit platforms

Re: 5.1-RELEASE TODO

2003-06-01 Thread Luigi Rizzo
On Sat, May 31, 2003 at 08:18:10PM -0400, Robert Watson wrote: On Sat, 31 May 2003, Scott Long wrote: It's been a matter of not having enough time, nothing more. I *will* address this one way or another before the release. I apologize for taking so long. Ditto, here, unfortunately.

Re: 5.1-RELEASE TODO

2003-06-01 Thread Luigi Rizzo
On Sun, Jun 01, 2003 at 03:32:56AM +0200, Bernd Walter wrote: ... :) And I hoped a programmer who knows the source could find out and fix very quickly. sorry, i missed the offending line number in your previous email. I think i missed a in all the first arguments to bcopy in the

Re: what is the suggested way to do void * arithmetic ?

2003-07-10 Thread Luigi Rizzo
On Thu, Jul 10, 2003 at 03:42:04AM -0700, Terry Lambert wrote: Luigi Rizzo wrote: in several places in ipfw2.c i have to move pointers across structures of variable length (lists of ipfw2 instructions returned by the getsockopt()), and i use the following type of code: void

Re: IPFW and/or rc rule parsing not working since today's cvsup

2003-07-13 Thread Luigi Rizzo
thanks for pointing out -- it turns out that by mistake i have changed the handling of blank lines in ipfw configs. I will restore the old behaviour ASAP (it's a trivial 1-2 line change). cheers luigi On Sun, Jul 13, 2003 at 01:31:07PM +0100, Matt wrote: Matt said: I

Re: IPFW and/or rc rule parsing not working since today's cvsup

2003-07-14 Thread Luigi Rizzo
just committed a fix cheers luigi On Sun, Jul 13, 2003 at 01:31:07PM +0100, Matt wrote: Matt said: I normally sync to current once a week and have just done it today: FreeBSD tao.xtaz.co.uk 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sun Jul 13 12:24:40 BST 2003 [EMAIL

Re: machdep.guessed_bootdev sysctl on i386

2003-02-24 Thread Luigi Rizzo
sorry for the crosspost but since it originated on -current maybe people interested in the rest of the discussion were there. I introduced the sysctl to export some amount of information to be used by picobsd disks to tell whether you booted from floppy or atapi disk. In turn, this is useful (and

can we build only static libs from the makefiles in /usr/src ?

2001-09-01 Thread Luigi Rizzo
the profiled libraries, but i see nothing like NOSHARED ... Suggestions ? cheers luigi --+- Luigi RIZZO, [EMAIL PROTECTED] . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center

Re: can we build only static libs from the makefiles in /usr/src ?

2001-09-02 Thread Luigi Rizzo
On Sat, 1 Sep 2001, Luigi Rizzo wrote: i am trying to do some cross-development for picobsd, and i really need only the static libraries. Is there anyways to avoid building the shared libs using the standard makefiles (in /usr/src and /usr/share/mk/*) ? NOPIC. I don't know

where is the idle_loop in current ?

2001-10-25 Thread Luigi Rizzo
I have some code (in stable) which is invoked from the idle loop, see below. I was trying to port it to CURRENT, but cannot find where the idle_loop (or idlethread ?) has gone. Any pointers ? A grep for idlethread did not return anything that i could parse. Furthermore, what kind of locking

how to handle clean module loading/unloading ?

2001-11-02 Thread Luigi Rizzo
: err = EINVAL ; break; } but it would be much more convenient if the check were done in some automatic way with some trick in DECLARE_MODULE. cheers luigi --+- Luigi RIZZO, [EMAIL PROTECTED

Re: re-entrancy and the IP stack.

2001-11-16 Thread Luigi Rizzo
struct pkthdr already has a field (struct mbuf *aux) which i think is used to store info per-packet state by ipsec, at least according to the comment (my dummynet hack predated this, i would have used this field if it had been available at the time). So this field could be used to access the

Re: re-entrancy and the IP stack.

2001-11-16 Thread Luigi Rizzo
On Fri, Nov 16, 2001 at 04:02:51PM -0800, Peter Wemm wrote: it. MT_DUMMYNET must die, not be propagated elsewhere. i agree! cheers luigi To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

Re: re-entrancy and the IP stack.

2001-11-16 Thread Luigi Rizzo
so far there hasn't been a lot of suggestion as to how the goal can be achieved however.. i actually suggested one i.e. have explicit pointers to metadata area(s) in the pkthdr. I think you forget the most fundamental feature which is performance. This is way more important than flexibility i

problem building libncurses...

2001-09-27 Thread Luigi Rizzo
with the fact that make_keys is being built using new headers, but old libraries (and we cannot use the new ones, we are building them). Any idea on how do i fix this ? cheers luigi --+- Luigi RIZZO, [EMAIL

Re: where is the idle_loop in current ?

2001-11-25 Thread Luigi Rizzo
for doing it, in the process i certainly learned something on the internals of CURRENT, but this seems to be about the only useful result of this additional work :) cheers luigi --+- Luigi RIZZO, [EMAIL PROTECTED

Re: -current vs. -stable network performance

2001-12-13 Thread Luigi Rizzo
On Thu, Dec 13, 2001 at 01:57:46PM +0100, Dag-Erling Smorgrav wrote: Luigi Rizzo [EMAIL PROTECTED] writes: STABLE can forward approx 125Kpps, whereas CURRENT tops at approx 80Kpps. Kernel configs, please. Attached. PICO5 is for CURRENT, PICO4 is for STABLE. In my testbed i am using the dc

problems compiling various things...

2001-12-13 Thread Luigi Rizzo
With a freshly cvsupped version of CURRENT, cross-compiled on a 4.3 box, (after the usual stdio.h fix related to the FILE handling), I am having problems compiling several programs, with errors such as the ones attached at the end. In most cases they choke on missing prototype for main(). This

Solved (Re: -current vs. -stable network performance)

2001-12-14 Thread Luigi Rizzo
)-m_ext.ext_buf : 0): \ (m)-m_flags M_PKTHDR ? (m)-m_data - (m)-m_pktdat : \ (m)-m_data - (m)-m_dat) On Wed, Dec 12, 2001 at 10:42:06PM -0800, Luigi Rizzo wrote: Hi, I am testing the forwarding performance of CURRENT vs. STABLE (both more or less up to date, unmodified

Re: Solved (Re: -current vs. -stable network performance)

2001-12-14 Thread Luigi Rizzo
On Fri, Dec 14, 2001 at 02:34:36AM -0800, Peter Wemm wrote: Luigi Rizzo wrote: [..] The change below has been committed to STABLE 7 weeks ago, but did not go into CURRENT because there was some disagreement on the ... Incidently, this is a poster-child example of why fixes are not to go

vm_zeropage priority problems.

2001-12-18 Thread Luigi Rizzo
[Cc peter because he introduced this code] Hi, i was trying the following code in -current (basically copied from vm_zeropage.c), to implement device polling in the idle loop, and noticed that the process would take all of the CPU time. Being suspicious that something was wrong with priorities,

Re: vm_zeropage priority problems.

2001-12-20 Thread Luigi Rizzo
On Thu, Dec 20, 2001 at 11:13:27AM -0800, Peter Wemm wrote: ... Excellent catch! This particular problem was one of the main reasons why this is still defaulting to 'off'. I have a couple of other changes to it pending commit to fix some of Bruce's complaints, but I hadn't noticed the cause

Re: vm_zeropage priority problems.

2001-12-20 Thread Luigi Rizzo
On Thu, Dec 20, 2001 at 12:16:03PM -0800, John Baldwin wrote: ... Priority propagation will already handle things ok. We drop to pri_native after we drop a lock (although if we still hold a contested lock we bump our priority to the min(nativepri, highest priority of threads on contested

Re: vm_zeropage priority problems.

2001-12-21 Thread Luigi Rizzo
On Sat, Dec 22, 2001 at 12:46:40AM +1100, Bruce Evans wrote: I think pri_native is just an implementation detail which shouldn't be used or visible to threads. It used used by the priority propagation mechanism to hold the original pri_level. Threads should just use their original priority

Re: vm_zeropage priority problems.

2001-12-21 Thread Luigi Rizzo
Don't know how interesting this can be, but i am writing (no plans to commit it, unless people find it interesting) some code to implement a weight-based instead of priority-based scheduler. The code is basically the WF2Q+ scheme which is already part of dummynet, adapted to processes. It is

Re: vm_zeropage priority problems.

2001-12-22 Thread Luigi Rizzo
On Sat, Dec 22, 2001 at 06:48:26PM +1100, Bruce Evans wrote: On Fri, 21 Dec 2001, Luigi Rizzo wrote: ... This would help removing the ugly property that priority-based have, which is that one process can starve the rest of the system. Only broken priority-based schedulers have

/bin/sh: Argument list too long when compiling LINT ...

2002-02-18 Thread Luigi Rizzo
Hi, I am getting a /bin/sh: Argument list too long error message when doing env MKDEP_CPP=cc -E CC=cc mkdep -a -f .newdep ... while compiling LINT on a -current tree. Sources are in /home/xorpc/u2/homes/rizzo/HEAD/src/sys which contributes a bit to the size of the argument

Re: /bin/sh: Argument list too long when compiling LINT ...

2002-02-19 Thread Luigi Rizzo
On Tue, Feb 19, 2002 at 07:36:30PM +1100, Bruce Evans wrote: Use a smaller path. Or dig up bde's fixes to config from the archives. That is only a temporary fix. LINT will eventually be larger than the world. The list of files passed to mkdep should be split up a bit. that is

Proposed patch for /bin/sh: Argument list too long when compiling LINT ...

2002-02-21 Thread Luigi Rizzo
So, in this thread a few days ago i reported that the list of arguments passed to mkdep can become quite large and exceed kern.argmax, especially if your sources are not in the default place and you are compiling a file with lots of options such as LINT. The place to fix (for -current) is

Re: Proposed patch for /bin/sh: Argument list too long when compiling LINT ...

2002-02-21 Thread Luigi Rizzo
On Thu, Feb 21, 2002 at 03:41:46PM -0800, Alfred Perlstein wrote: * Luigi Rizzo [EMAIL PROTECTED] [020221 15:14] wrote: So, in this thread a few days ago i reported that the list of arguments passed to mkdep can become quite large and exceed kern.argmax, especially if your sources

Re: Proposed patch for /bin/sh: Argument list too long when compiling LINT ...

2002-02-21 Thread Luigi Rizzo
Not particularly efficient... oh yes... i think Al's solution (make -V ... | xargs .. ) wins both in terms of simplicity and efficiency cheers luigi To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

Re: the ifp to a removed pcmcia ethernet card is left in struct ip_moptionsand struct ifmultiaddr

2000-09-05 Thread Luigi Rizzo
This is all made harder by the fact that struct mbuf has a struct ifnet pointer in it, so if for any reason there is an outstanding mbuf ... This has been raised as an issue before, and is a good reason to ifconfig down the interface, and wait a second or two before ejecting. You could and

buildworld problems with today's sources

2002-06-30 Thread Luigi Rizzo
I did the following (on a -STABLE system): cvs co src cd src make MAKEOBJDIRPREFIX=`pwd`/../usr/obj buildworld and got the error below. Any ideas ? Am i doing something wrong ? cheers luigi === gnu/usr.bin/tar rm -f tar addext.o argmatch.o backupfile.o

Re: buildworld problems with today's sources

2002-07-01 Thread Luigi Rizzo
On Mon, Jul 01, 2002 at 09:47:26AM -0400, Andrew Gallatin wrote: The same thing happened to me when buildworlding on a ~june 20th current box. Ruslan explained me the source of the problem... cvs does not prune empty directories unless you specify a revision or a date. In my case i wanted

Re: buildworld problems with today's sources

2002-07-01 Thread Luigi Rizzo
On Mon, Jul 01, 2002 at 09:58:04AM -0400, Andrew Gallatin wrote: ... That's actually rather scary. It implies that a freshly checked out tree checked out with plain 'cvs co src' is no longer buildable. c'mon... it is not that terrible, just a matter of adding a -P flag luigi To

Re: natd core dumping with bus error

2002-07-08 Thread Luigi Rizzo
Could you clarify the problem ? I believe the problem appears when you _do_ use punch_fw, otherwise the modified code is never called. cheers luigi On Thu, Jul 04, 2002 at 09:20:38AM -0500, Richard Seaman, Jr. wrote: On Tue, Jul 02, 2002 at 06:04:36PM -0700, Joel M. Baldwin

Re: natd core dumping with bus error

2002-07-08 Thread Luigi Rizzo
ok, there is a good PR on this one with a reasonable fix: http://www.freebsd.org/cgi/query-pr.cgi?pr=40331 I am going to commit this and a few other fixes tonight. cheers luigi On Mon, Jul 08, 2002 at 11:28:15AM -0500, Richard Seaman, Jr. wrote: On Mon, Jul 08, 2002

Re: different packing of structs in kernel vs. userland ?

2002-07-14 Thread Luigi Rizzo
On Sun, Jul 14, 2002 at 10:36:42PM +0200, Thomas Moestl wrote: On Sun, 2002/07/14 at 01:18:10 -0700, Luigi Rizzo wrote: Hi, the following message seems to suggest that the compiler (the way it is invoked) packs structures differently when building the kernel and userland. The stize

Re: different packing of structs in kernel vs. userland ?

2002-07-15 Thread Luigi Rizzo
sorry but all this just does not make sense to me. sizeof(foo) should give the same result irrespective of where you use it. Perhaps the best thing would be to put a printf(struct ip_fw has size %d\n, sizeof(struct ip_fw)); both in ipfw2.c and somewhere in ip_fw2.c and see if there is

Re: different packing of structs in kernel vs. userland ?

2002-07-15 Thread Luigi Rizzo
ok, convincing explaination, thanks! I will review the code and try to implement a proper fix, not the workaround that I put in. cheers luigi To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

Re: integer devide fault in dummynet_io

2002-07-16 Thread Luigi Rizzo
thanks for the report, i am going to commit a fix for this soon. It is funny that i remember to have hit exactly this bug myself some time ago, and i thought i had fixed it already, presumably the change got lost at some point... cheers luigi Hello. I have the following rules

Re: integer devide fault in dummynet_io

2002-07-17 Thread Luigi Rizzo
just committed a fix for this. The MFC will come shortly (note that there is no such a bug in -stable unless you use ipfw2 which is outside of the tree; the MFC will be just to keep the two files in sync). cheers luigi On Wed, Jul 17, 2002 at 12:45:45AM +0900, [EMAIL PROTECTED]

Re: IPFW2 may cause incoming connections to hang

2002-08-01 Thread Luigi Rizzo
On Thu, Aug 01, 2002 at 12:11:05PM +0400, Andrey A. Chernov wrote: I notice reproductible effect on my recent -current remote machine, after 5-7 hours of normal work, I can't connect to this machine via ssh,telnet,pop3 or ftp, but smtp and http continue to work normally. When I turn ipfw2

do we still need ufs/ffs/ffs_softdep_stub.c ?

2002-08-03 Thread Luigi Rizzo
Hi, just got the following panic with today's -current sources and an oldish config file (one not having options SOFTUPDATES): panic: softdep_slowdown called Debugger(panic) Stopped at Debugger+0x45: xchgl %ebx,0xc05fa740 db trace Debugger(c026141c) at Debugger+0x45

Re: Quickcam

2002-10-14 Thread Luigi Rizzo
On Mon, Oct 14, 2002 at 01:24:36PM -0700, Julian Elischer wrote: ... i.e. using a set of tools that are definitly supported and a supported videocam, we could say If you get this camera, and load the following ports, you will be able to take part in conferences by attaching to the following

system panicing in cpu_idle...

2001-02-01 Thread Luigi Rizzo
is a uniprocessor box with an AMD Athlon 750 CPU. cheers luigi --+- Luigi RIZZO, [EMAIL PROTECTED] . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704

Re: HEADS UP Re: cvs commit: src/sys/alpha/alpha trap.c src/sys/dev/acpica/Osd OsdSchedule.c src/sys/i386/i386 genassym.c swtch

2001-02-14 Thread Luigi Rizzo
special about text ? a FS knows nothing about data format. Maybe what you mean is that text is "self describing", assuming that you know more or less what is in it ? cheers luigi --+----- Luigi RIZZO, [EMAIL

cross-building PicoBSD - need advice...

2001-06-20 Thread Luigi Rizzo
---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137

Re: picobsd and mdconfig

2001-06-21 Thread Luigi Rizzo
) if there are not two arguments. This is wrong, the second argument is optional. thanks luigi ---+- Luigi RIZZO, [EMAIL PROTECTED] . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa

Re: picobsd and mdconfig

2001-06-21 Thread Luigi Rizzo
* Do we want NO_SWAPPING on or off in PicoBSD? I understand that many PicoBSD devices do not have swapspace. However, my understand of -current is that we do require swapping to work well. given that in the vast majority of cases you don't have a choice... * Do we want SOFTUPDATES?

Re: picobsd and mdconfig

2001-06-22 Thread Luigi Rizzo
On line 336 of the script, you export dead air, resulting in and Makefile.conf handles that in a way similar to the one you show below. CONFIG=${CONFIG:-config} cheers luigi To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the

Re: picobsd and mdconfig

2001-06-22 Thread Luigi Rizzo
Luigi, you cannot run dead air. Makefile.conf only handles that if the variable does not exist, not if the variable is empty. ok my fault :) luigi CONFIG=${CONFIG:-config} cheers luigi To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe

[net] protecting interfaces from races between control and data ?

2013-08-05 Thread Luigi Rizzo
i am slightly unclear of what mechanisms we use to prevent races between interface being reconfigured (up/down/multicast setting, etc, all causing reinitialization of the rx and tx rings) and i) packets from the host stack being sent out; ii) interrupts from the network card being processed. I

Re: [net] protecting interfaces from races between control and data ?

2013-08-05 Thread Luigi Rizzo
On Mon, Aug 5, 2013 at 5:46 PM, Adrian Chadd adr...@freebsd.org wrote: On 5 August 2013 07:59, Bryan Venteicher bry...@daemoninthecloset.org wrote: What I've done in my drivers is: * Lock the core mutex * Clear IFF_DRV_RUNNING * Lock/unlock each queue's lock .. and I think

Re: [net] protecting interfaces from races between control and data ?

2013-08-05 Thread Luigi Rizzo
On Mon, Aug 5, 2013 at 7:17 PM, Adrian Chadd adr...@freebsd.org wrote: I'm travelling back to San Jose today; poke me tomorrow and I'll brain dump what I did in ath(4) and the lessons learnt. The TL;DR version - you don't want to grab an extra lock in the read/write paths as that slows

Re: [net] protecting interfaces from races between control and data ?

2013-08-05 Thread Luigi Rizzo
in the control path. cheers luigi Jack On Mon, Aug 5, 2013 at 10:36 AM, Luigi Rizzo ri...@iet.unipi.it wrote: On Mon, Aug 5, 2013 at 7:17 PM, Adrian Chadd adr...@freebsd.org wrote: I'm travelling back to San Jose today; poke me tomorrow and I'll brain dump what I did in ath(4

Re: [net] protecting interfaces from races between control and data ?

2013-08-05 Thread Luigi Rizzo
/network/if_vtnet.c?revision=252451view=markup - -adrian -- -+--- Prof. Luigi RIZZO, ri...@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/. Universita` di Pisa TEL

Re: [net] protecting interfaces from races between control and data ?

2013-08-05 Thread Luigi Rizzo
On Mon, Aug 5, 2013 at 8:46 PM, Jack Vogel jfvo...@gmail.com wrote: What do you think about this change? looks good to me. but there is no need to rush, especially it will be nice if all interested parties agree on an approach and possibly even naming. I do not have any specific test case but

Re: [net] protecting interfaces from races between control and data ?

2013-08-05 Thread Luigi Rizzo
On Mon, Aug 05, 2013 at 11:04:44PM +0200, Andre Oppermann wrote: On 05.08.2013 19:36, Luigi Rizzo wrote: ... [picking a post at random to reply in this thread] tell whether or not we should bail out). Ideally we don't want to have any locks in the RX and TX path at all. Ok i have read

Re: [net] protecting interfaces from races between control and data ?

2013-08-06 Thread Luigi Rizzo
out, a quick and non intrusive workaround is at least follow the approach that Bryan suggested. cheers luigi On Tue, Aug 6, 2013 at 6:43 PM, Andre Oppermann an...@freebsd.org wrote: On 05.08.2013 23:53, Luigi Rizzo wrote: On Mon, Aug 05, 2013 at 11:04:44PM +0200, Andre Oppermann wrote

Re: [net] protecting interfaces from races between control and data ?

2013-08-07 Thread Luigi Rizzo
On Wed, Aug 7, 2013 at 5:26 AM, Mike Karels m...@karels.net wrote: I'm replying to one of the last messages of this thread, but in part going back to the beginning; then I'm following up on Andre's proposal. Luigi wrote: i am slightly unclear of what mechanisms we use to prevent races

CLANG reports an error with %b in printf(9)

2013-10-01 Thread Luigi Rizzo
This is on HEAD -- while compiling the kernel with CLANG and slightly higher warns level, i get errors of this kind (in multiple places): /usr/home/luigi/FreeBSD/head/sys/cam/cam_xpt.c:1069:27: error: invalid conversion specifier 'b' [-Werror,-Wformat-invalid-specifier]

error building stable/9 on FreeBSD 10

2013-10-31 Thread Luigi Rizzo
I am having trouble building stable/9 on FreeBSD 10: luigi@bsd10:~ # uname -a FreeBSD bsd10 10.0-BETA1 FreeBSD 10.0-BETA1 #0 r256420: Sun Oct 13 01:43:07 UTC 2013 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 # ./do TREE TARGET # is a script that invokes a make in the

Re: 11.0-CURRENT: 708.295633 netmap_reset [3011] interface not in netmap mode

2013-11-06 Thread Luigi Rizzo
On Wed, Nov 6, 2013 at 9:12 AM, O. Hartmann ohart...@web.de wrote: Since a couple of days now in 11.0-CURRENT, I see this message 708.295633 netmap_reset [3011] interface not in netmap mode several times in the console logs. What does that mean? it is a leftover debugging message. i

RFC: adding queue number/size fields to ifnet

2013-11-14 Thread Luigi Rizzo
Hi, it would be useful to have a common place with the indication of NIC parameters such as number of tx/rx queues and their lengths. Various 10G drivers do include this information in various places in the softc, but there is no common place. I was wondering if there is any objection to either

Re: UMA cache back pressure

2013-11-18 Thread Luigi Rizzo
On Mon, Nov 18, 2013 at 10:20 AM, Alexander Motin m...@freebsd.org wrote: On 18.11.2013 10:41, Adrian Chadd wrote: Your patch does three things: * adds a couple new buckets; These new buckets make bucket size self-tuning more soft and precise. Without them there are buckets for 1, 5, 13,

[RFC] how to get the size of a malloc(9) block ?

2013-11-28 Thread Luigi Rizzo
in porting some linux kernel code to FreeBSD we stumbled upon ksize(), which returns the actual size of a kmalloc() block. We could easily implement it as the first part of realloc(9) -- see kern/kern_malloc.c Would it make sense to add this to the malloc(9) API ? The userspace equivalent seems

Re: [RFC] how to get the size of a malloc(9) block ?

2013-11-28 Thread Luigi Rizzo
On Thu, Nov 28, 2013 at 01:33:41PM +, jb wrote: Luigi Rizzo rizzo at iet.unipi.it writes: in porting some linux kernel code to FreeBSD we stumbled upon ksize(), which returns the actual size of a kmalloc() block. We could easily implement it as the first part of realloc(9

Re: [RFC] how to get the size of a malloc(9) block ?

2013-11-29 Thread Luigi Rizzo
On Thu, Nov 28, 2013 at 7:13 AM, jb jb.1234a...@gmail.com wrote: Luigi Rizzo rizzo at iet.unipi.it writes: ... But I don't understand why you find ksize()/malloc_usable_size() dangerous. ... The original crime is commited when *usable size* (an implementation detail) is exported

Re: [RFC] how to get the size of a malloc(9) block ?

2013-11-29 Thread Luigi Rizzo
On Fri, Nov 29, 2013 at 3:44 PM, jb jb.1234a...@gmail.com wrote: Luigi Rizzo rizzo at iet.unipi.it writes: ... There is a difference between applications peeking into implementation details that should be hidden, and providing instead limited and specific information through a well

Re: [RFC] how to get the size of a malloc(9) block ?

2013-11-29 Thread Luigi Rizzo
On Fri, Nov 29, 2013 at 4:49 PM, Adrian Chadd adr...@freebsd.org wrote: The reason I wouldn't implement this is to avoid having code that _relies_ on this behaviour in order to function or perform well. nobody ever said (or could reasonably expect to do) that. Applications don't know if the

Re: [RFC] how to get the size of a malloc(9) block ?

2013-11-29 Thread Luigi Rizzo
On Fri, Nov 29, 2013 at 5:02 PM, jb jb.1234a...@gmail.com wrote: Luigi Rizzo rizzo at iet.unipi.it writes: ... If you want to improve memory management, that is, have the system (kernel or user space) handle memory reallocation intelligently and transparently to the user, then aim

Re: [RFC] how to get the size of a malloc(9) block ?

2013-12-02 Thread Luigi Rizzo
On Mon, Dec 2, 2013 at 4:36 AM, jb jb.1234a...@gmail.com wrote: dt71 at gmx.com writes: So new flags could be [1]: - realloc_flags(p, s, REALLOCF_NO_MOVE) ... - realloc_flags(p, s, REALLOCF_NO_MOVE | REALLOCF_ELASTIC) ... For this, there could be a REALLOCF_FORCE flag In case

'silent' kernel builds ?

2013-12-14 Thread Luigi Rizzo
Hi, I was trying to make buildkernel a bit quieter (just listing the name of the file being compiled). I hoped to modify the .c.o: rules in share/sys.mk but apparently kernel builds generate their own Makefile using definitions in sys/conf/kern.pre.mk . As a result, a patch like the one below

Re: 'silent' kernel builds ?

2013-12-14 Thread Luigi Rizzo
On Sat, Dec 14, 2013 at 09:53:30PM -0800, Rui Paulo wrote: On 14 Dec 2013, at 21:45, Luigi Rizzo ri...@iet.unipi.it wrote: Hi, I was trying to make buildkernel a bit quieter (just listing the name of the file being compiled). I hoped to modify the .c.o: rules in share/sys.mk

  1   2   3   4   5   >