Re: 5.4-RC2 freezing - ATA related?

2005-05-18 Thread Peter Jeremy
/sys/net/netisr.c:233 #13 0xc058310a in swi_net (dummy=0x0) at /usr/src/sys/net/netisr.c:346 -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL

Re: kernel killing processes when out of swap

2005-04-12 Thread Peter Jeremy
think? This has been discussed to death before - look in the archives for 'SIGDANGER' (probably pre-mailman). -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any

Re: Kernel [memory] tweaking question

2005-04-07 Thread Peter Jeremy
limits (ipcs shows that you are close to system limits or the applications are reporting allocation errors), then just increase the parameter related to whatever you are running out of. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http

Re: Fwd: 5-STABLE kernel build with icc broken

2005-03-31 Thread Peter Jeremy
/restore. Is there a solution or work-around? -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Fwd: 5-STABLE kernel build with icc broken

2005-03-30 Thread Peter Jeremy
actually uses the FPU. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: A few thoughts..

2005-03-30 Thread Peter Jeremy
/subr_msgbuf.c -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: organization

2005-03-30 Thread Peter Jeremy
members. I'm not sure this is the best way to endear yourself to the FreeBSD community. This strikes me as a good way to get yourself added to personal killfiles. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: the best form to wait the finish of execution of a child...

2005-03-30 Thread Peter Jeremy
; while(childpid != wait(status)) ; If you want to wait for a specific pid, look at waitpid() or wait4(): if (waitpid(childpid, status, 0) == -1) { handle error } -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list

Re: the best form to wait the finish of execution of a child...

2005-03-30 Thread Peter Jeremy
to use wait() at all. Note that if you don't bother to wait() for children and don't otherwise keep track of how many children you have, you can run into overload problems if you start creating children faster than they complete. -- Peter Jeremy

Re: Fwd: 5-STABLE kernel build with icc broken

2005-03-29 Thread Peter Jeremy
is non-trivial. The little reading I've done suggests that SSE and SSE2 are even larger. Saving the SIMD state would be more expensive that using integer registers for small (and probably medium-sized) copies. -- Peter Jeremy ___ freebsd-hackers

Re: organization

2005-03-29 Thread Peter Jeremy
incentives to have a net benefit. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: a Q on measuring system performance.

2005-03-25 Thread Peter Jeremy
kernel. compare the t_lapse, my concern is that t_lapse includes context switch time when the user process is taken out of run queue. So would gprof. And gprof has much higher overheads and a granularity of 10usec. -- Peter Jeremy ___ freebsd-hackers

Re: Process Control

2005-03-22 Thread Peter Jeremy
prompt and waits for input. Unfortunately, I can't think of any way to do what you want. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL

Re: Support for Tyan Thunder K8SR w/ Adaptec 7902 under AMD64

2005-03-19 Thread Peter Jeremy
include all variants so you could look in /sys/amd64/conf/GENERIC. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: FreeBSD trusted execution system: beta testers wanted

2005-03-12 Thread Peter Jeremy
/src/sys/crypto/ -CFLAGS+= -I/usr/src/sys/crypto +.PATH: ${.CURDIR}/../../crypto +CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../crypto KMOD= mac_chkexec SRCS= vnode_if.h \ server# -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list

Re: FUD about CGD and GBDE

2005-03-04 Thread Peter Jeremy
off the shelf and have the added advantage of allowing users and the system to clean up before the power goes away. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: FUD about CGD and GBDE

2005-03-04 Thread Peter Jeremy
-upgradeable firmware. It's just a matter of adding a little more. You would use it only when power fails, so it's not like you would wear it out. I think that most modern drives have very little firmware in ROM - just a bootstrap - with most of the firmware stored on the disk itself. -- Peter

Re: Driver Update Disk discussion

2005-02-25 Thread Peter Jeremy
. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: setenv/unsetenv's known memory leak

2005-02-23 Thread Peter Jeremy
the problem by requiring the caller to ensure that the strings passed as arguments remain in scope. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL

Re: Error in my C programming

2005-02-20 Thread Peter Jeremy
On Mon, 2005-Feb-21 00:22:56 +0800, Kathy Quinlan wrote: These are some of the errors I get in pairs for each of the above variables: Wtrend_Drivers.c:15: conflicting types for `Receiver' Wtrend_Drivers.h:9: previous declaration of `Receiver' Without knowing exactly what is on those lines, it's

Re: Error in my C programming

2005-02-20 Thread Peter Jeremy
On Mon, 2005-Feb-21 03:02:29 +0800, Kathy Quinlan wrote: Peter Jeremy wrote: 2) Pre-process the source and have a close look at the definitions and declarations for Receiver. You may have a stray #define that is confusing the type or a missing semicolon. ... (14)Length = 0x00; (15

Signalling a process from a INTR_FAST handler

2005-02-19 Thread Peter Jeremy
); } But pfind(9) does a PROC_LOCK() which implies it can sleep and therefore can't be used by an INTR_FAST handler. Firstly, am I correct? If so, is there an alternative approach I can use? -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http

Re: occasional ECONNREFUSED when connect()ing.

2005-02-18 Thread Peter Jeremy
TCPDEBUG' and doing setsockopt(...,SO_DEBUG) in the client and/or server processes. This may provide some clues, though it will generate a lot of console output (and you'll probably need to UTSL to understand the output). -- Peter Jeremy ___ freebsd-hackers

Re: bin/76089: The -n option in /usr/bin/w is broken

2005-02-13 Thread Peter Jeremy
address instead of the hostname. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Sharing memory between ithread and userland

2005-02-04 Thread Peter Jeremy
0x0001 vptr:0x001D 0x001E 0x0001 0x0001 vptr:0x001E 0x001F 0x0001 0x0001 vptr:0x001F 0x0020 0x0001 0x0001 vptr:0x0020 0x0021 0x0001 0x0001 vptr:0x0021 0x0022 0x0001 0x0001 -- Peter Jeremy

Re: Resuming from a crashdump

2005-01-24 Thread Peter Jeremy
external TCP connections when keep-alive timers expire in remote systems and firewalls. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL

Re: time and timing errors in c code on 5.x/i386 (longish)

2005-01-22 Thread Peter Jeremy
()) that correctly calculated (uint64 * uint32)/uint32 which would work for tt 2^32. Assuming that nothing is being profiled, this would be good for just over a year of process time. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http

Re: Background processes setting O_NONBLOCK on ttys

2005-01-12 Thread Peter Jeremy
doesn't). It is reasonably likely that existing code relies on the documented behaviour and will therefore break when you move O_NONBLOCK from the file to the file descriptor. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http

Re: Anybody have a working X config file for 5.3 and x.org under vmware workstation?

2004-12-31 Thread Peter Jeremy
that you need to manually configure - from memory, it's the resolution. My actual config files are at work and I won't have access to them for another week and a bit. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: calibrating time

2004-12-21 Thread Peter Jeremy
from the traditional implementation of sleep(3) which used alarm(2) and pause(2)). nanosleep(2) sleeps an integral number of ticks which is rounded up by one tick. -- Peter Jeremy ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: Multiple hard disk failures - coincidence ?

2004-12-18 Thread Peter Jeremy
to a particular file name - no? I know I've done this in the past but I don't recall exactly how. About all you can do is search through the inode list for the relevant blocks and then map the inode numbers to file names. -- Peter Jeremy ___ [EMAIL PROTECTED

Re: Multiple hard disk failures - coincidence ?

2004-12-18 Thread Peter Jeremy
On Sat, 2004-Dec-18 20:59:11 +0100, Bernd Walter wrote: On Sat, Dec 18, 2004 at 08:17:39PM +1100, Peter Jeremy wrote: My approach to this is to add a line similar to dd if=/dev/ad0 of=/dev/null bs=32k for each disk into /etc/daily.local (or /etc/weekly.local or whatever). This ensures

Re: brute3.tar.gz

2004-12-16 Thread Peter Jeremy
reasons). -- Peter Jeremy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: embedded assembler in .c files

2004-12-15 Thread Peter Jeremy
. -- Peter Jeremy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Multi-volume compressed dumps on DVDs

2004-12-15 Thread Peter Jeremy
remains a independent entity for restore purposes). -- Peter Jeremy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: du(1)/fts(3) integer overflow

2004-12-13 Thread Peter Jeremy
-bit architectures: int64_t x = (int64_t)(ulong)p-fts_parent-fts_number | ((int64_t)(ulong)p-fts_parent-fts_pointer) 32; x += p-fts_statp-st_blocks; p-fts_parent-fts_number = (long)x; p-fts_parent-fts_pointer = (void *)(long)(x 32); etc. /Severe_kludge_alert -- Peter

Re: My project wish-list for the next 12 months

2004-12-02 Thread Peter Jeremy
really help for system installation. You might solve points 1 and 2 but you replace them with the issue of how to bring up the network and arrange appropriate client/server communication and authentication. -- Peter Jeremy ___ [EMAIL PROTECTED] mailing

Re: ssh select() problem on 5.3

2004-11-29 Thread Peter Jeremy
. I've also bumped into this problem when playing with VLANs where one end of the VLAN trunk doesn't support long frames - an oversize packet will get ignored by the receiver without any error being returned. -- Peter Jeremy ___ [EMAIL PROTECTED] mailing

Re: Jail + sysv shmem

2004-11-27 Thread Peter Jeremy
died unexpectedly. Whilst it's possible for the sysadmin to enter the relevant jail and look at what is used in that jail, it's very difficult to get an overall view of the system in this way - especially if there are lots of jails. Robert Watson was also looking into this recently. -- Peter

Re: Protection from the dreaded rm -fr /

2004-10-02 Thread Peter Jeremy
or not), it should either do it or tell me that it hasn't done it. Failing to do what I ask and not telling me means that I can't trust the computer - I have to double-check that the files I wanted to delete have actually gone away. -- Peter Jeremy ___ [EMAIL

Re: fsck and lost+found space

2004-08-11 Thread Peter Jeremy
lost+found (perhaps with fsdb) and rerun fsck. I've done this. The problem is stopping fsck before it starts throwing away files. Once you stop fsck, you need to do a 'mount -f ...', rename lost+found to something else, unmount the filesystem and start lost+found again. -- Peter Jeremy

Re: fsck and lost+found space

2004-08-11 Thread Peter Jeremy
On Wed, 2004-Aug-11 09:58:21 +0200, Wilko Bulte wrote: On Wed, Aug 11, 2004 at 05:54:35PM +1000, Peter Jeremy wrote.. On Wed, 2004-Aug-11 08:17:39 +0200, Nicolas Rachinsky wrote: * Charles Sprickman [EMAIL PROTECTED] [2004-08-10 23:52 -0400]: I was hoping for some option in fsck to allow

Re: disk recovery help

2004-07-27 Thread Peter Jeremy
. -- Peter Jeremy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: regarding timeout/untimeout kernel functions

2004-07-23 Thread Peter Jeremy
(and there's no upper bound on how late your handler will be invoked if the system is heavily loaded). -- Peter Jeremy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Next Generation kernel configuration?

2004-07-23 Thread Peter Jeremy
On Fri, 2004-Jul-23 20:50:01 -0700, Jake Hamby wrote: My biggest annoyance with building the kernel, compared to Linux, is that it insists on building all of the possible kernel modules, even though I only want to build the ones that make sense for my hardware. I think you want the following:

Re: disk recovery help

2004-07-22 Thread Peter Jeremy
On Tue, 2004-Jul-20 14:01:06 -0400, Charles Sprickman wrote: On Tue, 20 Jul 2004, Peter Jeremy wrote: It's difficult to see how a sanely written RAID utility could totally screw up an array in a short time Upon reflection, one obvious way is to change the array layout. I don't know enough

Re: disk recovery help

2004-07-20 Thread Peter Jeremy
been wiped, rather than written back to the disk. If you haven't run newfs and have the correct disklabel, the disk should be in a reasonably sane state. Have you tried running something like ports/sysutils/scan_ffs over the disk (or your copy of it)? Have you tried dumping vn0c? -- Peter Jeremy

Re: gcc strangeness

2004-07-14 Thread Peter Jeremy
On 2004-Jul-11 21:06:32 +0400, Dmitry Morozovsky [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:/tmp/tsostik cat x.c #include stdio.h int main () { float a; for(a=0.01;a=0.1; a+=0.01) printf(%f %.3f %d\n, a*100, a*100, (int)(a*100)); return 0; } [EMAIL PROTECTED]:/tmp/tsostik

Re: FreeBSD 1.1.5.1-R cvs repo archive?

2004-05-09 Thread Peter Jeremy
On Sat, May 08, 2004 at 09:56:06PM -0700, Brian O'Shea wrote: However, CVS branch tags only appear to be listed for versions as far back as RELENG_2_2_0_RELEASE. Does anybody know if earlier versions are accessible via cvsup? CVSup just uses CVS tags so you can pull down the code associated with

Re: MS_ASYNC with MS_INVALIDATE

2004-03-29 Thread Peter Jeremy
On Sun, Mar 28, 2004 at 03:02:37PM -0600, Dan Nelson wrote: In the last episode (Mar 27), Mark Terribile said: A friend asked me to run some Linux source on FreeBSD. It simulates a data pool management system he is using, and it includes a call msync(2) with both the MS_ASYNC and MS_INVALIDATE

Re: Adventures with gcc: code vs object-code size

2004-03-21 Thread Peter Jeremy
On Sun, Mar 21, 2004 at 02:20:13AM -0500, Matt Emmerton wrote: - Original Message - From: Garance A Drosihn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 20, 2004 5:45 PM Subject: Adventures with gcc: code vs object-code size if (strcmp(elemcopy, :) == 0) ... I don't

Re: kernel activity

2004-03-16 Thread Peter Jeremy
Please don't top-post. On Tue, Mar 16, 2004 at 09:42:25AM +0100, Bogdan TARU wrote: Thanks for the mails advices... The box is a dual xeon @3GHz, with 4GB of ram and raid 5 on board (scsi HDDs), with a 4.9 on it. Not short of horsepower then. 250K syscalls/sec may not be overly excessive for

Re: a serious error in sched_ule.c?

2004-03-15 Thread Peter Jeremy
On Sun, Mar 14, 2004 at 09:16:54PM -0800, Wes Peters wrote: Sigh. Nobody really does compute-bound tasks anymore, do they? I really miss scientific programming. [EMAIL PROTECTED], the mersenne prime project, protein folding and the list goes on (the mersenne prime project web site includes an

Re: how to get cpu states more than once a second?

2004-03-03 Thread Peter Jeremy
On Wed, Mar 03, 2004 at 07:27:31AM +0100, Bernd Walter wrote: Currently I get the states via kern.cp_time, but this only allows a granularity of a single second and I need something around 50-100ms. As far as I can tell - both by studying the source code and by running sysctl -x kern.cp_time in a

Re: Call for testers: New PID allocator patch for -CURRENT

2004-01-31 Thread Peter Jeremy
On Fri, Jan 30, 2004 at 11:02:08PM +0800, Jun Su wrote: I think this algorithms for proc_alloc, pfind and zpfind are all O(1). The worst situation is that it reaches PID_MAX. In this situation, we need expand our pidtbl. This may bring some delay. However, this situation will only occurs few

Re: Making a FreeBSD DVD

2004-01-26 Thread Peter Jeremy
On Mon, Nov 24, 2003 at 10:06:46AM -0500, Leo Bicknell wrote: Well, what I'm really interested in is the install + live file system on a single DVD, which is how the DVD's at FreeBSD mall are advertised (I've never bought one, myself). So, I can build an install CD, I (think I) can build a live

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-12 Thread Peter Jeremy
On Sun, Jan 11, 2004 at 01:12:25PM -0600, William Grim wrote: If it's really such a big deal to get rid of floppy support, how about we get rid of it and make sure an older version of FreeBSD 4.x/5.x is always available for download? This way, floppy users could install an older version of the

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-10 Thread Peter Jeremy
On Fri, Jan 09, 2004 at 10:57:56PM +0100, Martin Nilsson wrote: This discussion is just like when the i386 support was removed from the GENERIC kernel, a lot of noise about old systems that wouldn't be able to run (or benefit) from FreeBSD 5 anyway. There's a big jump between i386 systems and

Re: Large Filesystem Woes

2004-01-10 Thread Peter Jeremy
On Fri, Jan 09, 2004 at 11:35:51AM -0800, Tom Arnold wrote: Building a box thats going to house many billions of small files. Think innd circa 1998 or someone trying to house AOLs mail system on cyrus or something. This is probably going to stress any filesystem. You might like to consider an

Re: SCM options (was Re: Where is FreeBSD going?)

2004-01-10 Thread Peter Jeremy
On Sat, Jan 10, 2004 at 05:01:13PM -0500, Garance A Drosihn wrote: At 9:35 PM + 1/10/04, Andrew Boothman wrote: Peter Schuller wrote: Most of the noteworthy features of subversion are listed on the project front page: http://subversion.tigris.org/ A significant one of which is the fact

Re: Large Filesystem Woes

2004-01-10 Thread Peter Jeremy
On Sun, Jan 11, 2004 at 12:25:46AM +0100, Dag-Erling Smørgrav wrote: Peter Jeremy [EMAIL PROTECTED] writes: Our main fileserver has a filesystem with 2.7e6 files and we are continually running into undocumented features (aka bugs) as a result of the large number of files. Is 2.7e6

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-09 Thread Peter Jeremy
On Fri, Jan 09, 2004 at 04:38:11PM +0100, Dag-Erling Smørgrav wrote: M. Warner Losh [EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Dag-Erling Smørgrav) writes: : 2) use pciconf -l (or direct access to /dev/pci) to retrieve the PCI :IDs of unclaimed devices, look them up in a list of supported

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-09 Thread Peter Jeremy
On Thu, Jan 08, 2004 at 08:30:17PM -0800, Avleen Vig wrote: A simple website which lets you choose what drivers you want (anyone seen the .muttrc config page? :) That should be really easy to do with a little perl CGI. I might take a crack at this in the next week or so. FWIW, Plan-9 (

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-09 Thread Peter Jeremy
On Thu, Jan 08, 2004 at 10:52:08AM +0100, Daniel Lang wrote: Matthew D. Fuller wrote on Thu, Jan 08, 2004 at 01:58:11AM -0600: [..] And, further, some of us don't have (and don't want) CD burners, and even if we had 'em, don't want to burn (no pun intended ;) a CD blank just to install an OS,

Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-09 Thread Peter Jeremy
On Fri, Jan 09, 2004 at 04:26:54PM -0600, Matthew D. Fuller wrote: On Fri, Jan 09, 2004 at 02:23:58PM -0700 I heard the voice of Scott Long, and lo! it spake thus: Dag-Erling Sm?rgrav wrote: yes, we need something like struct pci_device_info { uint32_tpciid; char

Re: Where is FreeBSD going?

2004-01-08 Thread Peter Jeremy
On Wed, Jan 07, 2004 at 09:08:38PM +0100, Roman Neuhauser wrote: The ports freeze seems to last too long with recent releses. Or maybe it's just I've gotten more involved, but out of the last four months (2003/09/07-today), ports tree has been completely open for whopping 28 days.

Re: secure file flag?

2003-11-21 Thread Peter Jeremy
On Fri, Nov 21, 2003 at 10:59:40AM +0100, Pawel Jakub Dawidek wrote: Such secure flag for running process could be also implemented with multiple meanings: Is the secure flag intended to protect the process image from the invoking user as well as other users? 1. All freed pages have to be

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

2003-11-21 Thread Peter Jeremy
On Wed, Nov 19, 2003 at 09:26:10PM -0800, 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

Re: two soundcards and realplayer

2003-10-25 Thread Peter Jeremy
Martin V?n(a wrote: I use two soundcards on my Freebsd5.1 box - Sb Live and SB AWE64, FreeBSD somehow figured out that Live is better than Awe and made it primary soundcard. ... But I can't figure out how to swap soundcards in The cards are numbered in the order in which they're detected.

Re: Determining CPU features / cache organization from userland

2003-10-13 Thread Peter Jeremy
On Sun, Oct 12, 2003 at 08:57:52PM +0100, Bruce M Simpson wrote: [ Andrew: Perhaps you can shed some light on how the necessary information can be gathered on Alpha? My search was incomplete and I could not find a reliable source for DEC's development manuals. ] L1 cache information is in the CPU

Re: Determining CPU features / cache organization from userland

2003-10-11 Thread Peter Jeremy
On Sat, Oct 11, 2003 at 09:27:11AM +0100, Bruce M Simpson wrote: OS X definitions considered too PowerPC centric. I think the best way to handle all cases is thus:- - Support 3 levels of cache. Out of interest, do any systems other than the big-iron Alpha's use L3 cache? A quick look at the

Re: Dynamic reads without locking.

2003-10-10 Thread Peter Jeremy
On Thu, Oct 09, 2003 at 07:24:15PM +0200, Bernd Walter wrote: Note that, possibly contrary to expectations, 8-bit and 16-bit _writes_ are not atomic on many (all?) the 64-bit architectures. Small writes are generally done by doing a 64-bit read, insert under mask and 64-bit write. The mask

Re: Determining CPU features / cache organization from userland

2003-10-10 Thread Peter Jeremy
On Fri, Oct 10, 2003 at 03:09:47PM -0400, Andrew Gallatin wrote: Bruce M Simpson writes: I've been thinking we should definitely make the cache organization info available via sysctl. I am thinking we should do this to make the UMA_ALIGN_CACHE definition mean something... If you do this,

Re: Dynamic reads without locking.

2003-10-09 Thread Peter Jeremy
On Wed, Oct 08, 2003 at 11:51:06AM +0200, Harti Brandt wrote: You need to lock when reading if you insist on consistent data. Even a simple read may be non-atomic (this should be the case for 64bit operations on all our platforms). So you need to do mtx_lock(foo_mtx); bar = foo;

Re: has anyone installed 5.1 from a SCSI CD?

2003-09-29 Thread Peter Jeremy
On Sun, Sep 28, 2003 at 06:14:25PM -0400, Sergey Babkin wrote: BTW, I have another related issue too: since at least 4.7 all the disk device nodes have charcater device entries in /dev. As of December 1999 - which is before 4.0-RELEASE. This was well advertised and discussed at the time. Your

Re: SimpleTech USB HDD driver

2003-09-25 Thread Peter Jeremy
On Wed, Sep 24, 2003 at 11:38:59PM +0100, Scott Mitchell wrote: No idea why both 6 byte and 10 byte commands exist. No doubt someone out there knows the historical background to it all. If my memory serves correctly, SCSI started off as SASI - developed by Shugart Associates for some marketing

Re: PCI interrupts passing DMA

2003-09-18 Thread Peter Jeremy
On Wed, Sep 17, 2003 at 06:12:44PM -0400, Andrew Gallatin wrote: My question is: What the heck could the SMP kernel be doing which causes the DMA to complete faster? My guess is that this is a coherency issue rather than a timing issue. The SMP kernels are far more careful about ensuring

Re: How to use usb storage in Freebsd?

2003-09-16 Thread Peter Jeremy
On 2003-Sep-14 18:54:40 +, Zane Long Quentine [EMAIL PROTECTED] wrote: the version of FreeBSD is 4.8 use the dmesg, I found some related information about my usb strorage --begin here umass0: Digital , Inc. TGE UFD MP3 Player., rev 1.10/0.01, addr 2 umass0: Get Max Lun not supported (IOERROR)

Re: C++ code in a kernel module?

2003-09-09 Thread Peter Jeremy
On Mon, Sep 08, 2003 at 11:12:59PM -0400, Alexander Kabaev wrote: On Mon, 8 Sep 2003 23:02:33 -0400 Matthew Emmerton [EMAIL PROTECTED] wrote: I've been silently following this thread, and unless I missed something, has anyone asked John why he wants/needs to use C++ in the kernel? Tools, not

Re: Ugly Huge BSD Monster

2003-09-02 Thread Peter Jeremy
On Mon, Sep 01, 2003 at 12:38:34PM -0700, Greg Shenaut wrote: Has it ever been suggested to create one or more dependencies ports (or more to the point, packages)? I think it might be pretty useful to have something like that so that all of the prerequisites can be installed at once. Maybe I'm

Re: Non-executable mappings now in NetBSD too

2003-08-31 Thread Peter Jeremy
On Sun, Aug 31, 2003 at 12:06:28AM +0100, Pedro F. Giffuni wrote: Emacs and perl both use traditional bytecode interpreters, as does the Classic JVM. I agree they will be unaffected. This change will only impact JIT JVMs. Well, we only have a JIT JVM for the i386, and on the particular case

Re: Non-executable mappings now in NetBSD too

2003-08-30 Thread Peter Jeremy
On Sat, Aug 30, 2003 at 09:59:01PM +0100, Pedro F. Giffuni wrote: --- Tim Kientzle [EMAIL PROTECTED] wrote: ... The OpenBSD work on tightening up read/write/exec memory permissions looks interesting, but I wonder what impact it has on JIT technologies; do the current Java VMs or other

Re: Minimalist FreeBSD 4.8

2003-08-27 Thread Peter Jeremy
On Wed, Aug 27, 2003 at 10:53:38AM +1000, Greg Black wrote: On 2003-08-26, Diomidis Spinellis wrote: You can use the system the way you intent to for two weeks, and then run find / -atime +2w -print0 | xargs -0 rm -f This command will delete all files that have not been accessed within the

Re: [future patch] dropping user privileges on demand

2003-08-22 Thread Peter Jeremy
On Thu, Aug 21, 2003 at 10:44:03PM +0200, Pawel Jakub Dawidek wrote: On Thu, Aug 21, 2003 at 01:09:15PM -0400, ari wrote: + [...] The programmer + should be able to drop filesystem creation permissions, without worrying + about the need to drop open, mkfifo, bind, link, symlink, mkdir, and any +

Re: GEOM Gate.

2003-08-15 Thread Peter Jeremy
On Thu, Aug 14, 2003 at 10:29:09PM +0200, Pawel Jakub Dawidek wrote: On Thu, Aug 14, 2003 at 09:52:25PM +0400, Buckie wrote: + BTW, QNX had this for a long time, it's called QNet in there. Allows + transparently to mount or use anything in /dev. Even a soundcard! I think this isn't really hard to

Re: cvs commit: src/sys/nfsclient bootp_subr.c nfs_diskless.cnfs_vfsops.c nfsdiskless.h

2003-08-15 Thread Peter Jeremy
[Redirected to -hackers because this isn't directly relevant to the actual code committed] On Fri, Aug 15, 2003 at 05:04:02AM -0700, Poul-Henning Kamp wrote: Suggested replacement command sequence on the client: dd if=/dev/zero of=/swapfile bs=1k count=1 oseek=10

Re: GEOM Gate.

2003-08-15 Thread Peter Jeremy
On Fri, Aug 15, 2003 at 11:01:47AM +0200, Pawel Jakub Dawidek wrote: On Fri, Aug 15, 2003 at 06:44:14PM +1000, Peter Jeremy wrote: + But there are two problems: + 1. Device major numbers. + + I don't see this as a problem - you do the name to major/minor mapping + on the remote system. All

Re: possible deadlocks?

2003-08-14 Thread Peter Jeremy
On Mon, Aug 11, 2003 at 03:50:26PM -0700, Ted Unangst wrote: On Mon, 11 Aug 2003, John Baldwin wrote: Also, SK_LOCK != SK_IF_LOCK, or is that a typo? If it is a typo, then the lock order should still be fixed in some fashion. They are the same. SK_IF_LOCK is called on the sk_if_softc, but

Re: Mirroring using vinum+NFS

2003-07-12 Thread Peter Jeremy
On Thu, Jul 10, 2003 at 01:38:21PM -0700, Joshua Oreman wrote: On Fri, Jul 11, 2003 at 06:10:13AM +1000 or thereabouts, Peter Jeremy wrote: Consider system A as the server and system B as the mirror. In theory, on system A I should be able to: mount B:/big/data/blob /remote vnconfig

Mirroring using vinum+NFS

2003-07-10 Thread Peter Jeremy
I'm looking at building a fileserver and want to mirror the data across two systems (if one fails, I can use the other). Consider system A as the server and system B as the mirror. In theory, on system A I should be able to: mount B:/big/data/blob /remote vnconfig /big/data/block

Re: Network stack cloning / virtualization patches

2003-06-03 Thread Peter Jeremy
On Mon, Jun 02, 2003 at 11:58:25PM +0200, Marko Zec wrote: There are two major possible causes for overhead increase. First, each IP protocol related tunable variable and most of the global symbols involved in network processing have been virtualized. [...] And second, many kernel functions have

Re: Network stack cloning / virtualization patches

2003-05-31 Thread Peter Jeremy
On Fri, May 30, 2003 at 10:07:07PM +0200, Marko Zec wrote: I plan to start porting the cloning code to -CURRENT once it becomes -STABLE (that means once the 5.2 gets out, I guess). FreeBSD has a policy that all new features must be added to -CURRENT before they can be added to -STABLE (4.x or

Re: gcc problem/openoffice failure

2003-05-28 Thread Peter Jeremy
On Tue, May 27, 2003 at 04:55:47PM -0700, Julian Elischer wrote: Has anyone been able to compile the openoffice port recently? It built successfully for me on 25th April in -STABLE. Are you using any non-default flags or options? Last time I tried to build it with debugging enabled (beginning

Re: Lots of kernel core dumps

2003-03-24 Thread Peter Jeremy
On Mon, Mar 24, 2003 at 08:18:43PM +0100, Daniela wrote: Well, it's just a home server. I don't mind a few crashes, but security is important for me. What do you think, should I go back to -stable? If you're willing to put up with a few crashes _and_ assist with debugging the crashes (eg trying

Re: generalized mergemaster(8)

2003-03-21 Thread Peter Jeremy
On Thu, Mar 20, 2003 at 10:15:48PM -0600, Brandon D. Valentine wrote: I have encountered a situation in which it would be extremely handy to have a generalized version of mergemaster(8) which is less specific to the task of merging /etc. I need to recursively merge two directories of source files

Re: jail support for ping, traceroute, etc.. crude hack

2003-03-16 Thread Peter Jeremy
On Mon, Mar 17, 2003 at 10:06:27AM +0300, .@babolo.ru wrote: It is time to invent ping socket and traceroute socket in addition to tcp, udp, divert so on? Whilst this might seem nice, actually implementing so that it is both useful and safe is not easy. For a ping socket, this is reasonably easy

Re: first parameter to select

2003-03-13 Thread Peter Jeremy
On Thu, Mar 13, 2003 at 01:57:16AM -0500, David Cuthbert wrote: To be honest, I've never passed anything but FD_SETSIZE for this parameter. When I'm writing a performance critical server, I use poll() instead. It's faster This is an interesting claim. Do you have some pointers to back it up?

Re: first parameter to select

2003-03-13 Thread Peter Jeremy
On Thu, Mar 13, 2003 at 06:50:18PM +0200, Enache Adrian wrote: I have no benchmarks, but judging after the way things are implemented in the FreeBSD kernel, select() is definitely faster. Can you explain what leads you to make this statement please. Please someone explain me what is meant in

Re: first parameter to select

2003-03-13 Thread Peter Jeremy
On Thu, Mar 13, 2003 at 02:00:49PM -0500, David Cuthbert wrote: Peter Jeremy wrote: In virtually all cases, poll() will need to copy more data in and out of the kernel then select() would. Likewise, in virtually all cases, select() will need to scan more file descriptors than poll() does

Re: Realtek

2003-03-11 Thread Peter Jeremy
On Tue, Mar 11, 2003 at 11:20:36AM -0800, Doug Ambrisko wrote: Wes Peters writes: | Flood it with wire speed 64-byte packets and drive it into receive | interrupt livelock. Yup, the PCI bus is (most of) the problem here too. Can't reproduce it. Maybe they fixed it in the 8100L rev.? I tried a

<    1   2   3   4   5   6   >