Re: logitech cordless optical mouse problems...

2003-12-31 Thread Peter Dufault
have a newer version and don't have any problems. Peter Dufault HD Associates, Inc. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: CAM wiring, LUNs and duplicate wired entries

2002-08-27 Thread Peter Dufault
Dufault did but he's been gone for years. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: cvs commit: src/sys/kern kern_fork.c

2002-05-23 Thread Peter Dufault
just be removed, I'll try to sneak some time in and do it. Thanks for the info. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe

Log file analysis

2001-03-06 Thread Peter Dufault
, different programs at different heights, etc. I did a little searching for log file analysis, etc, but only see web site oriented utilities. I'll start rolling my own using a tk canvas, but does anyone know of a good starting point tool? Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime

Re: Stupid debugging pthread question

2001-03-02 Thread Peter Dufault
Date: Thu, 1 Mar 2001 12:44:39 -0500 (EST) From: Peter Dufault [EMAIL PROTECTED] This is a stupid question, basically it's how to debug something. I have four cooperating p-threaded processes. One of them keeps getting a SIGSEGV with the address 0x752f422f. I'm not sure

Re: how to actually find out whether data hit the disk?

2001-03-02 Thread Peter Dufault
Peter Dufault [EMAIL PROTECTED] writes: Do an msync with MS_SYNC someplace. Also, use MAP_NOSYNC in mmap until 4.3 when Matt Dillon plans to make that the default behavior. Ahh, no. That's the other way around - I do not *want* it to hit the disk, but would like to *know* when

Re: Stupid debugging pthread question

2001-03-02 Thread Peter Dufault
to mimic the vxWorks behavior of having a different file 0, 1, and 2 per thread. By disabling this the behavior goes away, apparently what I'm doing is illegal. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe system

Stupid debugging pthread question

2001-03-01 Thread Peter Dufault
dump the stack brute force on an x86? Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

memorylocked resource (was Setting memory allocators...)

2001-02-28 Thread Peter Dufault
now, I'm assuming the main use for this is debugged small closed embedded systems, only bring up kickers. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTEC

Re: how to actually find out whether data hit the disk?

2001-02-28 Thread Peter Dufault
mmap(fd, MAP_NOSYNC|MAP_SHARED); unlink("foo"); Everyone now happily does what they want and then all exit and no one ever does an msync(). Then you never need to actually transfer any data to disk. I'm not sure what actually happens now. Peter -- Peter Dufault ([EM

Re: how to actually find out whether data hit the disk?

2001-02-28 Thread Peter Dufault
and checking the mtime should give you the info at the expense of polling, I can't think of another way. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED

Re: Where can I find out rules on blocking in threads?

2001-02-27 Thread Peter Dufault
n-blocking and then clear O_NONBLOCK using fcntl, hopefully that will work in all environments. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED] with &q

Re: Where can I find out rules on blocking in threads?

2001-02-27 Thread Peter Dufault
can you provided a small piece of code that shows this behaviour? Here's one without error checking. Be sure to use -pthread. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval #include

Re: Where can I find out rules on blocking in threads?

2001-02-27 Thread Peter Dufault
it gets worse -- when i change my loop to be: while (1) { fifo = open(fifoPath, O_RDONLY | O_NONBLOCK); cread = read(fifo, buf, sizeof(buf)); if (cread 0) do_something(); close(fifo); usleep(10); }

Re: Setting memory allocators for library functions.

2001-02-26 Thread Peter Dufault
is is a can of worms, but this would be a way to proceed. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Wake on Lan

2001-02-23 Thread Peter Dufault
t. I've had it idle for half an hour so I don't know of any other events that wake it up. You'd have to be sure nothing was going to talk to it and you'd need an ARP entry for once the arp cache timed out to use this in any way. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development,

Re: pthread_attr_setschedparam, mozilla, and PTHREAD_MAX_PRIORITY

2001-01-11 Thread Peter Dufault
() and sched_getpriority_max(). Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Arg! Siginfo and pthreads again

2000-12-03 Thread Peter Dufault
the only one ever burnt by this? Do other user-space thread systems handle this similarly? Maybe an info thread can block at an info fifo in conjunction with a "psthread" program. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc.

Re: Arg! Siginfo and pthreads again

2000-12-03 Thread Peter Dufault
On Sun, 3 Dec 2000, Peter Dufault wrote: Again I've forgotten that SIGINFO dumps the pthread info and created several gigabytes of /tmp files: rt% rm /tmp/uthread* /bin/rm: Argument list too long. I don't consider it bad form to use SIGINFO to see if processes are still

Re: C and C++ on FreeBSD

2000-11-14 Thread Peter Dufault
e C++ work in an embedded system. Exceptions had already been given up on. The ctors/dtors are handled with "munch" style tools (from vxWorks land) that generate construct/destruct vectors that you'll probably then hook in with kernel modules. Peter -- Peter Dufault ([EMAIL PROTECTED])

Re: Filesystem holes

2000-10-31 Thread Peter Dufault
initially mapped to a copy on write zero page. I guess you can't do that without mmap because of swap allocation. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail

Re: Filesystem holes

2000-10-31 Thread Peter Dufault
hared memory objects and shared files in different places and also having names such as "/vme_pid7662_data64" since I can't have subdirs. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approv

gdb remote debugging on slow computers

2000-08-31 Thread Peter Dufault
d are ways to connect to remote serial ports. Does anyone know if I can easily do this? Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsu

Re: IPC, shared memory, syncronization AND threads...

2000-08-16 Thread Peter Dufault
setpshared() to it, and then have the usual pthread_mutex_lock()/pthread_mutex_unlock() interface support the high performance synchronization. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To U

Re: IPC, shared memory, syncronization AND threads...

2000-08-16 Thread Peter Dufault
Here's the kind of thing I have in mind, wrapped around the pthreads mutexes. This replaces default pthread mutexes (those with no special attributes) with possibly fast ones. I haven't done any real timing but I've verified that a program I have works and runs a lot faster with these wrappers.

Re: IPC, shared memory, syncronization AND threads...

2000-08-15 Thread Peter Dufault
to a swarm of worker bees. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

core dumps when mmap'd to large sparse files

2000-07-28 Thread Peter Dufault
I have a program where I mmap a huge sparse file. If I fault and generate a core dump it proceeds to do something until the disk is full, but the disk is then left not full and a perfectly good core dump of a reasonable size is left. Can anyone explain? This is with 4.0. Peter -- Peter

Re: /usr/include/posix4/semaphore.h

1999-10-29 Thread Peter Dufault
The stuff defined in /usr/include/posix4/semaphore.h, is not implemented in -current, right? If I missed it, I'd appreciate a pointer... Right, not implemented. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc. Safety

Re: Wall Street Journal on Open source OS (9/10/99)

1999-09-10 Thread Peter Dufault
-- Peter Dufault (dufa...@hda.com) Realtime development, Machine control, HD Associates, Inc. Safety critical systems, Agency approval To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-hackers in the body of the message

Re: locking revisited

1999-08-28 Thread Peter Dufault
a few searches? I have other opinions, some that I hold strongly, but since they have to do with lack of definition of boundary conditions then I won't bring them up until (2.) is answered. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc

Re: locking revisited

1999-08-28 Thread Peter Dufault
a few searches? I have other opinions, some that I hold strongly, but since they have to do with lack of definition of boundary conditions then I won't bring them up until (2.) is answered. Peter -- Peter Dufault (dufa...@hda.com) Realtime development, Machine control, HD Associates, Inc

Re: from number to power of two

1999-08-22 Thread Peter Dufault
. The possible inline ffs is in machine/cpufunc.h ffs() is fundamental to scheduling queues and cryptography and should have attention paid to it. As Warner said, it could be a single instruction on some architectures. Peter -- Peter Dufault (dufa...@hda.com) Realtime development, Machine

Re: Overcommit and calloc()

1999-07-20 Thread Peter Dufault
Well, bzero could map all memory (outside the boundaries) to a single zeroed page marked copy on write. The statistics you could gather might then point out some grossly broken programs. Peter -- Peter Dufault ([EMAIL PROTECTED]) Realtime development, Machine control, HD Associates, Inc

Re: Overcommit and calloc()

1999-07-20 Thread Peter Dufault
Well, bzero could map all memory (outside the boundaries) to a single zeroed page marked copy on write. The statistics you could gather might then point out some grossly broken programs. Peter -- Peter Dufault (dufa...@hda.com) Realtime development, Machine control, HD Associates, Inc