Re: general Darwin imports (was Re: Darwin cmd import?)

2004-06-02 Thread Robert Watson
On Wed, 2 Jun 2004, Michael W. Lucas wrote: On Sat, May 29, 2004 at 07:55:21PM -0400, Robert Watson wrote: The FreeBSD Core Team took a look at the APSL a while back, and decided that similar to LGPL/GPL, it was an acceptable license for use in userspace for stand-alone tools

Re: Darwin cmd import?

2004-05-29 Thread Robert Watson
On Fri, 28 May 2004, Cyrille Lefevre wrote: regarding the APSL (http://www.opensource.apple.com/apsl/), do you think it is possible to import some darwin commands w/ mods. for instance, I thing to decomment and relpath from bootstrap_cmds, sadc and sar from system_cmds, and maybe some

Re: implications of SMP kernel on UP

2004-04-02 Thread Robert Watson
On Thu, 1 Apr 2004, Bjoern A. Zeeb wrote: what are the implications on running an SMP enabled kernel on a UP machine ? I first thought of things like: - performence (most likely not worth the discussion ?) - additional locking problematic ? - ... ? Or asked the other way round: why

Re: UT2004?

2004-04-02 Thread Robert Watson
On Wed, 31 Mar 2004, Kris Kennaway wrote: On Thu, Apr 01, 2004 at 03:26:27PM +0930, Daniel O'Connor wrote: Has anyone got it installed under FreeBSD? I got the demo to run and install pretty well (for some reason I can't play it in KDE, I have to drop back to twm otherwise my system

Re: implications of SMP kernel on UP

2004-04-02 Thread Robert Watson
On Thu, 1 Apr 2004, Thierry Herbelot wrote: Le Thursday 01 April 2004 09:10, Bjoern A. Zeeb a écrit : Hi, what are the implications on running an SMP enabled kernel on a UP machine ? I first thought of things like: - performence (most likely not worth the discussion ?) I got an

Re: Question regarding shell user creation at login time

2004-03-28 Thread Robert Watson
On Mon, 29 Mar 2004, Ganbold wrote: Hi, I traced sshd using ktrace and it says: .. 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted 10198 new CALL execve(0x80485d0,0xbfbfed8c,0xbfbfed94) 10198 new NAMI /home/new/new.pl

Re: usermode linux on BSD?

2004-03-10 Thread Robert Watson
On Wed, 10 Mar 2004, David Gilbert wrote: Has anyone made an attempt to run usermode linux on FreeBSD? Is the issue-list long? There was a neat paper at BSDCon 2003 discussing running usermode FreeBSD on Linux, and it talked about what would be necessary to make usermode FreeBSD run on

Re: a serious error in sched_ule.c?

2004-03-09 Thread Robert Watson
On 9 Mar 2004, Bin Ren wrote: Hi, all: I've been reading sched_ule.c and seem to find a serious error: in 'sched_slice()': * Rationale: * KSEs in interactive ksegs get the minimum slice so that we * quickly notice if it abuses its advantage. Then, there

Re: Strange problem with vnodes and sockets

2004-03-07 Thread Robert Watson
On Sun, 7 Mar 2004, Kiss Tibor wrote: I want to create a small kernel module which logs the socket operations. So in my module I have a socket structure, and i want to know which process (thread) owns that. I try to solve this problem by this way: Sockets, as with files, can be referenced

Re: Standard sbc and pcm support in GENERIC kernel?

2004-03-04 Thread Robert Watson
On Wed, 3 Mar 2004, Randy Pratt wrote: On Wed, 3 Mar 2004 17:03:40 +0100 (CET) you wrote: I've been on the question list for some time, and I have noticed that many people do not know how to get sound support up and running in FreeBSD 5.X. I know that re-compiling the kernel is easy

Re: Looking for static analysis tool to generate call graphs

2004-03-03 Thread Robert Watson
On Wed, 3 Mar 2004, Zajcev Evgeny wrote: Robert Watson [EMAIL PROTECTED] writes: Well, using a scary combination of grep, awk, a long list of omit this regexp's, and prcc from cflow, I got the following: http://www.watson.org/~robert/freebsd/20040302-sockets.ps Actually

Re: Looking for static analysis tool to generate call graphs

2004-03-03 Thread Robert Watson
On Wed, 3 Mar 2004, Dag-Erling Smørgrav wrote: Robert Watson [EMAIL PROTECTED] writes: Well, using a scary combination of grep, awk, a long list of omit this regexp's, and prcc from cflow, I got the following: http://www.watson.org/~robert/freebsd/20040302-sockets.ps Duck

Re: Looking for static analysis tool to generate call graphs

2004-03-02 Thread Robert Watson
On Mon, 1 Mar 2004, Robert Watson wrote: I'd like to generate static call graphs from sections of src/sys/kern, src/sys/net, and src/sys/netinet, and ideally, get an output that looks pretty when printed to a (perhaps large) piece of paper. It doesn't need to be able to handle function

Looking for static analysis tool to generate call graphs

2004-03-01 Thread Robert Watson
I'd like to generate static call graphs from sections of src/sys/kern, src/sys/net, and src/sys/netinet, and ideally, get an output that looks pretty when printed to a (perhaps large) piece of paper. It doesn't need to be able to handle function pointer magic in structures (vnode operations,

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

2004-02-29 Thread Robert Watson
On Sun, 29 Feb 2004, Mike Silbersack wrote: On Sat, 28 Feb 2004, Don Bowman wrote: this would only allow 2 concurrent TCP sessions per unique source address. Depends on the syn flood you are expecting to experience. You could also use dummynet to shape syn traffic to a fixed level i

Re: Accessing sysctls from kernel

2004-02-26 Thread Robert Watson
On Thu, 26 Feb 2004, Bruce M Simpson wrote: On Thu, Feb 26, 2004 at 02:10:40PM +0100, Ivan Voras wrote: In sys/sys/sysctl.h I see function kernel_sysctlbyname() that looks (to me) to be intended for accessing sysctl values from kernel, but for it's first parameter it requires a struct

Re: 5.2.1 make installword trashed my system

2004-02-26 Thread Robert Watson
On Thu, 26 Feb 2004, db wrote: I've been running 5.2 on my laptop (i386 Acer) for some time now. Few hours ago I download the 5.2.1-release source, buildworld, buildkernel, installkernel, but after a few minuts of installworld my system froze. Now when I try to boot I get: Ouch.

Re: use after free bugs

2004-02-21 Thread Robert Watson
On Fri, 20 Feb 2004, John Baldwin wrote: On Thursday 19 February 2004 08:43 pm, Ted Unangst wrote: Hi. These are some bugs found by Coverity in a static analysis run on the FreeBSD kernel. All these are use after free bugs. Thanks for the excellent bug reports! I wonder if the same

Re: malloc backed md/mfs filesystem swapped?

2004-02-13 Thread Robert Watson
On Fri, 13 Feb 2004, Andrew J Caines wrote: After Ring the various FMs including, but not limited to, mdmfs(8), mdconfig(8) malloc(9), I am unclear whether of not the memory used by md of type MD_MALLOC is kernel memory which will not be swapped, or not. On the same subject, does the the

Re: malloc backed md/mfs filesystem swapped?

2004-02-13 Thread Robert Watson
On Sat, 14 Feb 2004, Colin Percival wrote: At 00:56 14/02/2004, Robert Watson wrote: If you have swap available, you pretty much always want to use swap-backing for memory disks -- if there's room in memory they will run as fast as malloc-backed, but you don't have to be as worried about

Re: kernel threads

2004-01-29 Thread Robert Watson
On Wed, 28 Jan 2004, Julian Elischer wrote: the KSE stuff requires too much assistance from teh Userland Thread scheduler. HOWEVER it is possible that kthreads may one day be implemented as multiple threads of a single kernel process.. (but not yet) John has been talking about doing

Re: FreeBSD Status Report for Oct-Dec 2003

2004-01-29 Thread Robert Watson
On Thu, 29 Jan 2004, Danny Braniss wrote: thanks! with so much garbage/software/noise around it's difficult to see the gems. and hearing from first hand is very important. true also that google hit it first, but you provided the missing link. If you want to peruse the FreeBSD perforce

Re: kernel threads

2004-01-27 Thread Robert Watson
On Tue, 27 Jan 2004, Renaud Molla Wanadoo wrote: I'm trying to use the kthread library under 5.2-RELEASE but can't compile my program (which actually only tries to create a thread). I've read that there is now KSE to create kernel threads, but i am wondering if it could be used within the

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

2004-01-25 Thread Robert Watson
On Sun, 25 Jan 2004, Mike Silbersack wrote: On Sat, 24 Jan 2004, Robert Watson wrote: To pick up the corrupted packet on the machine where the corruption is occurring, you might want to try hooking up the UDP checksum drop case to BPF_MTAP() for a special BPF device or rule, or have

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

2004-01-24 Thread Robert Watson
On Fri, 23 Jan 2004, Matthew Dillon wrote: I tracked down an occassional buildworld failure on DragonFly to my XL driver, which is synchronized to 4.x's XL driver. It would be very helpful if you could do the following: (1) See if you can reproduce this using something other than NFS

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

2004-01-24 Thread Robert Watson
On Sat, 24 Jan 2004, Max Laier wrote: On Saturday 24 January 2004 17:06, Robert Watson wrote: On Fri, 23 Jan 2004, Matthew Dillon wrote: I tracked down an occassional buildworld failure on DragonFly to my XL driver, which is synchronized to 4.x's XL driver. FYI

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

2004-01-24 Thread Robert Watson
On Sat, 24 Jan 2004, Luigi Rizzo wrote: 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

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

2004-01-24 Thread Robert Watson
On Sat, 24 Jan 2004, Luigi Rizzo wrote: 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

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

2004-01-24 Thread Robert Watson
On Sat, 24 Jan 2004, Matthew Dillon wrote: Well, I tried to tcpdump a session. I managed to hit the error three times but in all three cases the tcpdump on the server dropped the particular packet I was looking for. I'm only able to get a 70% retention rate in the tcpdump

Re: GEOM + Vinum

2004-01-21 Thread Robert Watson
On Wed, 21 Jan 2004, Lukas Ertl wrote: I step in. I complained bitterly about the rip-it-off-plans. s/plans/proposal/ I'm currently not able to help out coding, but I would gladly supply remote console access to a box suitable for vinum testing. (Including access to a local

Re: shutdown -p now

2004-01-21 Thread Robert Watson
On Wed, 21 Jan 2004, Liam Foy wrote: shutdown -p now is dependant upon hardware, and am 100% sure my hardware supports this; yet it still does not work. Must I have anything added to my kernel configuration or anything? What version of FreeBSD are you using? Do you have ACPI enabled, if on

Re: ip_input - chksum - why is it done so early in ip_input?

2004-01-17 Thread Robert Watson
On Sat, 17 Jan 2004, Andre Oppermann wrote: Besides that i'd like to add that FreeBSD has the fastest forwarding engine i've seen on any free OS. It's in my opinion a very suitable OS for routing/forwarding. We are working on it to make it even faster. If you are using 5.2 or -current

Re: 5.1-5.2

2004-01-15 Thread Robert Watson
On Thu, 15 Jan 2004, Matt Freitag wrote: Building 5.2-RELEASE from 5.1-RELEASE-p10 w/ipf+ipfw+ipfw6+dummynet, 5.1 Compiled fine with this setup. I need ipfilter as it's doing my source routing for ipv6 (multiple transits) since ip6fw doesn't support fwd. (I just use ip6fw for filtering, and

Re: 5.1-5.2

2004-01-15 Thread Robert Watson
On Thu, 15 Jan 2004, Eric Masson wrote: Robert == Robert Watson [EMAIL PROTECTED] writes: Robert Moving to PFIL_HOOKS for all the funky IP input/ouput Will all available packet filters, including ipfw rely on PFIL_HOOKS or not ? Yes; we to make it so that ipfw will also rely

Re: p_[usi]ticks from userland without kvm and procfs?

2004-01-14 Thread Robert Watson
On Wed, 14 Jan 2004, Ryan Beasley wrote: I'm poring over some code that uses the p_[usi]ticks counters inside of struct proc. This is fine under 4.x where kinfo_proc includes a copy of proc, but is broken under 5.x since a commit 3 years ago that reorganized kinfo_proc. So, outside of

Re: Filesystem marker.

2004-01-14 Thread Robert Watson
On Wed, 14 Jan 2004, David Gilbert wrote: Is there a set of bytes at some offset in a block that is common to any instance of a BSD ufs filesystem? I ask because recently my home machine erased it's fdisk block _and_ the bsdlabel with it. It certainly didn't have time to erase the whole

Re: Gratituous ARP and the em driver

2004-01-13 Thread Robert Watson
On -1 xxx -1, Nielsen wrote: When I change IP addresses on my 'em' gigabit NIC, ARP isn't sent properly. This appears to be the problem in the following bug report, however i'm using the 'fixed' version of the em driver (in FreeBSD 4.9). http://www.freebsd.org/cgi/query-pr.cgi?pr=54488

Re: Future of RAIDFrame and Vinum (was: Future of RAIDFrame)

2004-01-12 Thread Robert Watson
On Mon, 12 Jan 2004, Mark Linimon wrote: If nothing happens, vinum is going to break even more very soon. No ... if you do a commit that changes the code assumptions upon which vinum was built, vinum will break. vinum is not going to magically break by itself. This gets back to a

Re: diskless problems

2004-01-11 Thread Robert Watson
On Sun, 11 Jan 2004, Danny Braniss wrote: while the subject is being revived, there are some changes/additions I made to libstand/bootp.c, it exports all the dhcp tags so that they are available to rc.diskless? or rc.d/initdiskless via kenv check out

Re: MD(4) cleanups and unload lesson.

2004-01-11 Thread Robert Watson
On Sun, 11 Jan 2004, Pawel Jakub Dawidek wrote: With attached patch unloading md(4) module is possible. It also cleans up big part of code according to style(9). Could you separate this into a functional diff and a style diff? There's a general preference to not combine them, as it means

Re: diskless problems

2004-01-10 Thread Robert Watson
On Sat, 10 Jan 2004, Dag-Erling Smørgrav wrote: I'm trying to set up a VIA C3-based mini-ITX box for diskless boot using isc-dhcpd 3.0 from ports. The kernel and modules load fine, but isc-dhcpd doesn't seem to answer the kernel's DHCP discover message. The following is a tcpdump of the

Re: diskless problems

2004-01-10 Thread Robert Watson
On Sat, 10 Jan 2004, Dag-Erling Smørgrav wrote: Robert Watson [EMAIL PROTECTED] writes: Can you send tcpdump -e output? 22:18:14.884745 0:40:63:c4:60:3d ff:ff:ff:ff:ff:ff 0800 590: 0.0.0.0.68 255.255.255.255.67: xid:0x64c4603d secs:4 flags:0x8000 [|bootp] 22:18:16.911162 0:40:63:c4:60

Re: diskless problems

2004-01-10 Thread Robert Watson
On Sat, 10 Jan 2004, Dag-Erling Smørgrav wrote: Robert Watson [EMAIL PROTECTED] writes: On Sat, 10 Jan 2004, Dag-Erling Smørgrav wrote: I'll try again without the BOOTP options... Yeah. Our PXE booting support isn't really the same as the traditional diskless booting environment

Re: Future of RAIDFrame

2004-01-10 Thread Robert Watson
On Sat, 10 Jan 2004, Scott Long wrote: I started RAIDframe three years ago with the hope of bringing a proven and extensible RAID stack to FreeBSD. Unfortunately, while it was made to work pretty well on 4.x, it has never been viable on 5.x; it never survived the introduction of GEOM and

Re: Where is FreeBSD going?

2004-01-07 Thread Robert Watson
On Wed, 7 Jan 2004, Roman Neuhauser wrote: [1] has core@ considered subversion (devel/subversion)? Everyone has their eyes wide open looking for a revision control alternative, but last time it was discussed in detail (a few months ago?) it seemed there still wasn't a viable alternative.

RE: switching between groups

2004-01-07 Thread Robert Watson
On Wed, 7 Jan 2004, Adil Katchi wrote: Unfortunately, newgrp(1) would not work, because it calls setgroups, which for some weird reason, needs the caller to be a superuser. Isn't there a function that sets the groups (like setgroups) of the current process where you don't have to be a

Re: Where is FreeBSD going?

2004-01-06 Thread Robert Watson
On Tue, 6 Jan 2004, Paul Robinson wrote: And therein lies a problem. The only thing any of the committers cares about is what they think. Got a problem? Submit a patch. Don't like the way things are done? Submit a patch. Don't like how such-and-such a util works? Submit a patch. While it's

Re: pciconf -lv - /dev/pci error

2003-12-31 Thread Robert Watson
On Wed, 31 Dec 2003, William Michael Grim wrote: I have 5.1-RELEASE installed on my system, and I've never needed to do a pciconf -lv to probe the system before. However, I tried doing it earlier today after logging in through SSH and doing su - to become superuser. I received this error:

Re: pciconf -lv - /dev/pci error

2003-12-31 Thread Robert Watson
On Wed, 31 Dec 2003, John Baldwin wrote: History is in PR 32677. I do think your patch might be ok if it only applies to the -l case. If so, then it should probably be committed and MFC'd (along with the kernel pci_user.c change) so the PR can be closed. Well, this patch changes only the

Re: patch: portable dirhash

2003-12-17 Thread Robert Watson
On Wed, 17 Dec 2003, Alexander Kabaev wrote: On Tue, 16 Dec 2003 22:12:08 -0500 (EST) Ted Unangst [EMAIL PROTECTED] wrote: can somebody please review/commit this to freebsd? it is most of the differences to permit openbsd to use the code. it should not change the code in any

Re: patch: portable dirhash

2003-12-17 Thread Robert Watson
On Wed, 17 Dec 2003, Robert Watson wrote: On Wed, 17 Dec 2003, Alexander Kabaev wrote: On Tue, 16 Dec 2003 22:12:08 -0500 (EST) Ted Unangst [EMAIL PROTECTED] wrote: can somebody please review/commit this to freebsd? it is most of the differences to permit openbsd to use

Re: general load balancing issues

2003-12-15 Thread Robert Watson
On Mon, 15 Dec 2003, Matthew Seaman wrote: On Mon, Dec 15, 2003 at 12:46:52PM +0100, Bogdan TARU wrote: Right now I am considering a setup with one common NFS repository for the configuration files, Apache binaries, Web content and temp directory for PHP, NFS resource which will be

Re: howto upgrade 4.8 to 4.9 without cdrom or floppy?

2003-12-11 Thread Robert Watson
On Fri, 12 Dec 2003, paul van den bergen wrote: on freebsd-hackers, Alfred Perlstein posted a method that allows boot-disk-less installation... but it requires mdconfig, a 5.1 utility... is there a method to do this under 4.8? it seems to me that the job performed by md0 could be done

Re: adding more ram

2003-12-10 Thread Robert Watson
On Wed, 10 Dec 2003, Dan Nelson wrote: In the last episode (Dec 10), [EMAIL PROTECTED] said: I have a server with 1GB of RAM and a swap partition of 2GB i will upgrade the memory server to 2GB so my questions are: should i fix the swap partition to have now 4GB of space ? Depends.

Re: Sharing data between user space and kernel

2003-12-07 Thread Robert Watson
On Sun, 7 Dec 2003, Anand Subramanian wrote: A look at the copyin() code in the kernel reveals that all the kernel needs to do to access the data(address space) of a user process is Note that the copyin/copyout implementat is machine-dependent (MD) and so while this is true on i386, it may

Re: Reward for fixing keyboard support in FreeBSD, apply within

2003-12-07 Thread Robert Watson
On Sun, 7 Dec 2003, Mathew Kanner wrote: On Dec 07, Mathew Kanner wrote: The way I see it, FreeBSD needs serious hacking to have multiple concurrent keyboards support without serious hacking. ugh, you know what I mean. With mouse support, we have a layer of indirection with

Re: IPFW and the IP stack

2003-12-04 Thread Robert Watson
On Thu, 4 Dec 2003, Devon H.O'Dell wrote: This is obviously the most logical explanation. There's a good bit of questioning for PFIL_HOOKS to be enabled in generic to allow ipf to be loaded as a module as well. If this is the case, we'll have two firewalls that have their hooks compiled in

Re: ifconfig(8) refactoring -- YACC grammar now online

2003-11-30 Thread Robert Watson
On Sun, 30 Nov 2003, Bruce M Simpson wrote: On Sun, Nov 30, 2003 at 01:12:42PM +0100, Andre Oppermann wrote: What I've thinking about a lot is to make the networking system and ifconfig sort of class-based like newbus and geom. Look at:

Re: ifconfig(8) refactoring -- YACC grammar now online

2003-11-30 Thread Robert Watson
On Sun, 30 Nov 2003, Bruce M Simpson wrote: On Sun, Nov 30, 2003 at 02:20:50PM -0500, Robert Watson wrote: if_type seems like it will work for high level classes of interfaces, but something more fine-grained will be required for interfaces that implement multiple classes or subclasses

Re: freebsd smp - linux up

2003-11-27 Thread Robert Watson
On Wed, 26 Nov 2003, Anthony Schneider wrote: sadly, all ktrace shows is ktrace launching vmware (from 'ktrace vmware', shows sh reading and executing, and then ends with the vmware fork). is there a special way to ktrace linux binaries that i'm not aware of? ktrace should work fine, but

Re: Help request: problems with a 5.1 server and large numbers of ssh users.

2003-11-20 Thread Robert Watson
On Wed, 19 Nov 2003, Len Sassaman wrote: It is my intuition from this behavior that the sshd master process listening for connections is unable to spawn a new process to complete the authentication step, and thus the connection is being dropped. There is no information of use in dmesg, nor

Re: Help request: problems with a 5.1 server and large numbers of ssh users.

2003-11-20 Thread Robert Watson
On Thu, 20 Nov 2003, Ken Smith wrote: On Thu, Nov 20, 2003 at 10:56:08AM -0500, Robert Watson wrote: Hmm. Well, it certainly sounds like a resource limit to me, especially if it's a nice round number like 150 or 300. One possibility might be running out of pseudo-terminals to support

Re: 4.9 KLDload error

2003-11-08 Thread Robert Watson
On Fri, 7 Nov 2003, Jin Guojun [NCS] wrote: A KLD module ncs_time_ctl.ko compiled on both 4.8 and 4.9 hosts can be loaded by kldload on any 4.8 machine. But neither .ko files can be loaded on a 4.9 machine. The error is: 4.9 # kldload -v ./ncs_time_ctl.ko kldload: can't load

Re: sending messages, user process -- kernel module

2003-11-07 Thread Robert Watson
On Fri, 7 Nov 2003, Jerry Toung wrote: I am trying to do asynchronous send/receive between a user process that I am writing and a kernel module that I am also writing. I thought about implementing something similar to unix routing socket, but I will have to define a new domain and protosw.

Re: Update: Debox sendfile modifications

2003-11-05 Thread Robert Watson
On Wed, 5 Nov 2003, Igor Sysoev wrote: As to worker kthreads I think it's better to queue aio operation as it was made in src/sys/kern/vfs_aio.c:aio_qphysio(). One of the things that worries me about the proposal to use kernel worker threads to perform the I/O is that this can place a fairly

Re: Update: Debox sendfile modifications

2003-11-05 Thread Robert Watson
On Wed, 5 Nov 2003, Igor Sysoev wrote: On Wed, 5 Nov 2003, Robert Watson wrote: On Wed, 5 Nov 2003, Igor Sysoev wrote: As to worker kthreads I think it's better to queue aio operation as it was made in src/sys/kern/vfs_aio.c:aio_qphysio(). One of the things that worries me

Re: Experimental FreeBSD and Linux kernel source cross reference web site

2003-10-30 Thread Robert Watson
On Thu, 30 Oct 2003, Hiten Pandya wrote: Thank you very very much! ;-) Atlast, someone got to it. I have been wanting to setup LXR for DragonFly for quite some time now, but did not have enough time on my hands to mess with it. Does it require any sort of

Experimental FreeBSD and Linux kernel source cross reference web site

2003-10-29 Thread Robert Watson
In the past when browsing the Linux source code, I've made extensive use of the Linux Cross-Reference (LXR) hosted at lxr.linux.no. This web site provides a cross-referenced and searchable HTML interface to the Linux source code; you can perform freetext and identifier searches, check

Re: Experimental FreeBSD and Linux kernel source cross reference web site

2003-10-29 Thread Robert Watson
FYI, lxr's C parsing code appears to dislike some of our C constructs. I haven't had a chance to dig in much yet, but this is a warning that there are some glitches (for example, kern_prot.c seems to be improperly parsed in RELENG_4). Also, the identifier database seems somewhat prone to

Re: FreeBSD mail list etiquette

2003-10-25 Thread Robert Watson
On Sat, 25 Oct 2003, Matthew Dillon wrote: It's a lot easier lockup path then the direction 5.x is going, and a whole lot more maintainable IMHO because most of the coding doesn't have to worry about mutexes or LORs or anything like that. You still have to be pretty careful,

Synchronization philosophy (was: Re: FreeBSD mail list etiquette)

2003-10-25 Thread Robert Watson
(Subject changed to reflect the fact that it contains useful technical content and banter, resulting in a hijacking of the thread; hope no one minds) On Sat, 25 Oct 2003, Matthew Dillon wrote: Yes. I'm not worried about BPF, and ucred is easy since it is already 95% of the way there,

Re: Is socket buffer locking as questionable as it seems?

2003-10-04 Thread Robert Watson
On Sat, 4 Oct 2003, Brian Fundakowski Feldman wrote: I keep getting these panics on my SMP box (no backtrace or DDB or crash dump of course, because panic() == hang to FreeBSD these days): panic: receive: m == 0 so-so_rcv.sb_cc == 52 From what I can tell, all sorts of socket-related calls

Re: 4.8-stable kernel panic

2003-09-15 Thread Robert Watson
If one of you has had a chance to test this properly, please go ahead and commit. I don't have remote -STABLE development boxes, so haven't been able to do any -STABLE merging since I went to BSDCon. I did get RE permission to MFC this change. FYI, I have a bunch more related changes in a patch

Reminder: BSDCon next week in San Mateo!

2003-09-04 Thread Robert Watson
This is just a friendly reminder e-mail that the BSD Conference is taking place in San Mateo next week, and that if you're planning to attend and haven't yet registered, you might want to. Or, just turn up and register at the door. There's a really strong lineup of FreeBSD-related papers,

Re: Ugly Huge BSD Monster

2003-09-01 Thread Robert Watson
On Mon, 1 Sep 2003, Denis Troshin wrote: Almost every package I install requires a few other packages. This 'idea of using dependent packages' turns FreeBSD (and other unix-systems) to an ugly monster. For example, I don't need Perl or Python but a few packages I install require them.

Re: Minimalist FreeBSD 4.8

2003-08-27 Thread Robert Watson
As has been mentioned, the FreeBSD source tree as shipped isn't configured for minimization without a fair amount of effort. However, there are a number of larger components, typically maintained by third parties, that are build-time removable, and are typically arguments to the build specified

Re: Minimalist FreeBSD 4.8

2003-08-27 Thread Robert Watson
On Wed, 27 Aug 2003, Brian Reichert wrote: On Wed, Aug 27, 2003 at 07:26:10AM +1000, John Birrell wrote: One way to do this initially is to install a full FreeBSD system on one disk partition and use a second partition for a trial install. FreeBSD's boot manager will let you boot into

Re: Kernel Panic on FreeBSD-5.1-p2 with SMP support

2003-08-24 Thread Robert Watson
On Sun, 24 Aug 2003, Markus Paluschek wrote: I have Compaq Proliant Server with 2 Pentium Xeon IV 2,4GHz processors. After installing FreeBSD-5.1, upgrading to FreeBSD-5.1-p2 by cvsup and recompiling kernel with SMP support I;ve download ircd-hybrid-7 sources and installed on user account

Re: GEOM Gate.

2003-08-15 Thread Robert Watson
On Fri, 15 Aug 2003, Pawel Jakub Dawidek wrote: On Thu, Aug 14, 2003 at 09:48:57PM +0200, Attila Nagy wrote: + Bruce M Simpson wrote: + Whatever next? PCI-over-IP? + Collecting cheap on board serial lines to make a big terminal server + makes sense to me :) + + BTW, Pawel's stuff would

Re: Missing system call in linux emulation ( patch )

2003-08-14 Thread Robert Watson
On Thu, 14 Aug 2003, Steven Hartland wrote: I've created a patch for the linux emulation which adds a dummy for the exit_group syscall along with defining all functions up to 252 this fixes a crash in the BattleField 1942 server. How do I go about getting this into the various FreeBSD

Re: possible deadlocks?

2003-08-07 Thread Robert Watson
On Wed, 6 Aug 2003, Ted Unangst wrote: My advisor Dawson Engler has written a deadlock detector, and we'd like some verification. They look like bugs, unless there is some other reason why two call chains cannot happen at the same time. Neat -- sounds like two good catches given the

Re: Communications kernel - userland

2003-07-22 Thread Robert Watson
On Tue, 22 Jul 2003, Adam Migus wrote: Perhaps I'm not understanding you right but I think Pawel's idea is cool. It seems to fulfill your requirements (except being network specific). I suppose if it were network specific we could optimize it for packet streams and if we made it

Re: Communications kernel - userland

2003-07-21 Thread Robert Watson
On Mon, 21 Jul 2003, Terry Lambert wrote: Robert Watson wrote: Of these approaches, my favorite are writing directly to a file, and using a psuedo-device, depending on the requirements. They have fairly well-defined security semantics (especially if you properly cache the open-time

Re: Communications kernel - userland

2003-07-21 Thread Robert Watson
On Mon, 21 Jul 2003, Pawel Jakub Dawidek wrote: For example syscall is marking some range with mark() function. For now on this range isn't accessable from userland. If process will try to write to this page, page is copied (copy-on-write). If this page will be modified by kernel it will

Re: Communications kernel - userland

2003-07-20 Thread Robert Watson
On Sat, 19 Jul 2003, Pawel Jakub Dawidek wrote: Your choices are: - device, - sysctl, - syscall. There are actually a few other more obscure ways to push information from the kernel to userspace, depending on what you want to accomplish. Write directly to a file from the kernel. ktrace,

Re: running 5.1-RELEASE with no procfs mounted (lockups?)

2003-07-17 Thread Robert Watson
On Tue, 15 Jul 2003, Josh Brooks wrote: I have loaded two 5.1-RELEASE systems, both of them have PROCFS and PSEUDOFS in the kernel, and yet neither of them have a procfs mounted. There is no procfs line in /etc/fstab by default, and no procfs is mounted on the system in any way.

Re: current state of the art / best practice for devfs in a jail ?

2003-07-03 Thread Robert Watson
On Thu, 3 Jul 2003, Joshua Oreman wrote: On Thu, Jul 03, 2003 at 04:00:46AM -0700 or thereabouts, Josh Brooks wrote: I have been researching the various of ways people add devfs to a jail to give the jail certian /dev devices necessary to function ... Well, all I did was test your

Re: per-directory quotas possible on 5.x ?

2003-06-30 Thread Robert Watson
On Sun, 29 Jun 2003, Josh Brooks wrote: Normally, quotas work on a per-user, per-filesystem basis - so if a user has a home directory and other processes _not owned by that user_ are placing files and using up space into that directory, it will not count toward the quota (unless they

Re: Suid and gid files

2003-06-23 Thread Robert Watson
On Mon, 23 Jun 2003, Socketd wrote: I just installed FreeBSD 5.1 release and ran a find / -perm +4000 and find / -perm +2000. My question is: are any of these files used by the system, in a way that prevents me from making them non-executable to the world? I have no shell users and don't

Re: struct ipc_perm

2003-06-20 Thread Robert Watson
On Wed, 18 Jun 2003, Dmitry Sivachenko wrote: Is there any reason why struct ipc_perm is not protected by #ifdef _KERNEL in ipc.h? Is it supposed to be used from userland? It's needed by ipcs. Ah, I see. It is visible via struct msqid_ds. I developed a patch which requires

Re: kqueue alternative?

2003-06-15 Thread Robert Watson
On Sun, 15 Jun 2003, Matthew Hagerty wrote: I'm writing a little application that needs to watch a file that another process is writing to, think 'tail -F'. kqueue and kevent are going to do it for me on *BSD, but I'm also trying to support *cough* linux and other UN*X types OSes. From

Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix need (fwd)

2003-02-25 Thread Robert Watson
:53:53 -0500 (EST) From: Robert Watson [EMAIL PROTECTED] To: Martin Blapp [EMAIL PROTECTED] Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix need (fwd) On Tue, 25 Feb 2003, Martin Blapp wrote: Basically, it changes p31b_proc() to not always return an error for non-root

Re: Monitoring changes in extended attributes?

2003-02-24 Thread Robert Watson
On Wed, 12 Feb 2003, Kevin Fogleman wrote: Is there an existing way to monitor the entire filesystem for changes to any file, particularly changes in extended attributes? I'm looking to write a program that builds an index of all user-accessable extended attributes for every file in the

Re: Multi-level jailing.

2003-02-20 Thread Robert Watson
On Mon, 17 Feb 2003, Pawel Jakub Dawidek wrote: I have prepared patch for jail functionality against FreeBSD 5.0-CURRENT. It provides multi-level jailing and multiple ips for jails. Sounds cool, although I haven't had a chance to read the patch yet. Question: how did you handle the problem

Re: max simultaneous TCP connections (32,763)?

2003-01-26 Thread Robert Watson
On Sun, 26 Jan 2003, Sam Tannous wrote: I have two freebsd boxes (back to back) and I've been playing with a simple server on one machine and client on the other machine (this was simply an exercise with playing with kqueue). Both the server and the client are single processes and the

Re: umount of procfs fails

2003-01-26 Thread Robert Watson
On Sun, 26 Jan 2003, Tim Kientzle wrote: Experimenting with 'mount' and stumbled across the following oddity: mount -t procfs proc /mnt umount -t /mnt You're missing the proc after -t here, right? results in procfs still mounted on /mnt but no longer mounted on /proc. It appears that

Re: NFS ACLS's ?

2002-12-29 Thread Robert Watson
On Fri, 27 Dec 2002, joe mcguckin wrote: Are there any strange interactions between NFS and filesystems that are not UFS? E.g. UFS2? Does NFS support new features that these fs's may implement? NFS can represent many but not all of the services found in UFS1 and UFS2. Among things it

Re: panic: icmp_error: bad length

2002-12-11 Thread Robert Watson
BTW, if this bug exists in 5.0 for the same reasons (or even different ones), we should try to generate a fix ASAP and get it committed. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects [EMAIL PROTECTED] Network Associates Laboratories On Thu, 12 Dec 2002, Ian Dowse

Re: kernel/userland ssh filesystem for FreeBSD?

2002-12-11 Thread Robert Watson
On Wed, 11 Dec 2002, Marco Molteni wrote: as you might know, both kde (via kio-fish) and gnome (via gnome virtual file system) provide a userland filesystem-like API that allows to mount a remote filesystem using ssh. What I don't like about those solutions is that they require the

Re: Some problems about KSE

2002-12-11 Thread Robert Watson
A commit was made to correct the KSE crash shortly after 5.0-RC1. You can cvsup forward to a newer revision, or wait for RC2. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects [EMAIL PROTECTED] Network Associates Laboratories On Wed, 11 Dec 2002, ouyang kai wrote: Hi,

<    1   2   3   4   5   6   7   8   >