Re: "swiN: clock sio" process taking 75% CPU

2006-07-19 Thread victor cruceru
ell. I've no idea whether it might be relevant, but I have option DEVICE_POLLING turned on; toggling sysctl kern.polling.enable doesn't seem to make any difference. The machine is a very uninteresting single-CPU Athlon box, clocked at 1.6GHz, several years old. Here's its dmesg outp

Re: devinfo(3) problem...

2005-10-25 Thread victor cruceru
and check that your hw is fully functional (and detected). To check if it is your mistake or another bug in libdevinfo, you may want to run the associated tool (man -k devinfo). Hope this helps. On 10/25/05, Daniel Rudy <[EMAIL PROTECTED]> wrote: > At about the time of 10/24/2005 7:28

Re: devinfo(3) problem...

2005-10-24 Thread victor cruceru
e not found: No such file or directory > root ptr: 0x0 > Fatal: Unable to get device information > > > Now I have made sure that I have called devinfo_free() during the first > call before calling d

Re: interprocessor communication

2005-09-24 Thread victor cruceru
bsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > -- victor cruceru ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: fok() execve() -> No child processes

2005-09-08 Thread victor cruceru
Well, I suppose that execve is successful. if not you should call _exit() instead of exit() in the child process (you should not return from e_x_e_c if the exec fails) Also your application should not ignore SIGCHLD. See man vfork and especially man wait. victor cruceru On 9/8/05, erkan kolemen

Re: fok() execve() -> No child processes

2005-09-08 Thread victor cruceru
Try to replace vfrork with fork and check if you'll get the same behavior. victor cruceru On 9/8/05, erkan kolemen <[EMAIL PROTECTED]> wrote: > Following code fails. I debugged it and saw that: it > produces "No child processes" error while wait(). > > is it po

Re: accept: Invalid argument

2005-09-06 Thread victor cruceru
Also the 3rd argument for accept must be positive. See man accept. victor cruceru. On 9/6/05, victor cruceru <[EMAIL PROTECTED]> wrote: > Did you call bind() and especially listen() before accept()? > victor cruceru > > > On 9/6/05, erkan kolemen <[EMAIL PROTECTED]>

Re: accept: Invalid argument

2005-09-06 Thread victor cruceru
Did you call bind() and especially listen() before accept()? victor cruceru On 9/6/05, erkan kolemen <[EMAIL PROTECTED]> wrote: > Hi, > > In a daemon loop, i am using accept() to accept > incoming connections. > > while(1) { > if((fd = accept(socketd, (struct so

Re: Enumerating devices and hardware conf from userland

2005-08-24 Thread victor cruceru
See: man 3 devinfo and man 3 devstat Hope this helps, victor cruceru On 8/24/05, kylin <[EMAIL PROTECTED]> wrote: > >I'm developping a tool running in userland (root) (a command line > >tools) for enumerating all devices present on the machine : > > >This t

6.0 BETA2: SATA HDD not detected

2005-08-22 Thread victor cruceru
TA150 While the SiS 964 SATA150 controller is also detected by the 6.0 BETA2 install, the ad4 HDD is not detected. Any help is greatly appreciated. Thanks, victor cruceru ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/ma

Re: number of simultanously opened files

2005-08-21 Thread victor cruceru
And errno (from a failed open) is ? On 8/21/05, Divacky Roman <[EMAIL PROTECTED]> wrote: > > hi > > I wrote this: > witten /tmp# cat x.c > #include > #include > #include > > #define MAX 10 > main() > { > int i = MAX; > > for (; i>0; i--) { > if (open("/dev/null", O_RDONLY) == -1) {

Re: O_NONBLOCK for devices with removable media

2005-08-01 Thread victor cruceru
See below. On 8/1/05, Bernd Walter <[EMAIL PROTECTED]> wrote: > > On Mon, Aug 01, 2005 at 10:04:25PM +0300, victor cruceru wrote: > > In conclusion: > > any difference between open with O_NONBLOCK and open without it for this > > kind of device

Re: O_NONBLOCK for devices with removable media

2005-08-01 Thread victor cruceru
. Thanks victor cruceru On 8/1/05, Bernd Walter <[EMAIL PROTECTED]> wrote: > > On Mon, Aug 01, 2005 at 09:41:30PM +0300, victor cruceru wrote: > > Well, if you are doing this from a daemon (multiplexing a lot of events) > > which is blocked in this open syscall, even 1

Re: O_NONBLOCK for devices with removable media

2005-08-01 Thread victor cruceru
f there is something like TEST_UNIT_READY (for both ATAPI and SCSI) which can be issued on a control device (i.e. /dev/ata) BR, Victor Cruceru On 8/1/05, Bernd Walter <[EMAIL PROTECTED]> wrote: > > On Mon, Aug 01, 2005 at 04:33:23PM +0300, victor cruceru wrote: > > Hi Marc, >

Re: O_NONBLOCK for devices with removable media

2005-08-01 Thread victor cruceru
Olzheim <[EMAIL PROTECTED]> wrote: > > On Mon, Aug 01, 2005 at 02:42:21PM +0300, victor cruceru wrote: > > Hi all, > > I'm just wondering if it's OK for an open syscall on such a device (i.e. > > /dev/acd0 or /dev/da1 with a CF reader attached) to block til

O_NONBLOCK for devices with removable media

2005-08-01 Thread victor cruceru
Hi all, I'm just wondering if it's OK for an open syscall on such a device (i.e. /dev/acd0 or /dev/da1 with a CF reader attached) to block till the media is ready or a timeout occurs. Thanks, Victor ___ freebsd-hackers@freebsd.org mailing list http://li

Re: Per CPU load statistics

2005-07-18 Thread victor cruceru
Hi all, Could you please give more details? Because the SNMP agent must query the O/S (FreeBSD in this case) for these stats. Thanks, Victor Crcueru On 7/18/05, Mathieu CHATEAU <[EMAIL PROTECTED]> wrote: > > Hello, > > you can trough snmp & cacti for example. > > cheers, > > Friday, July 1