Re: What is the proper use of mlock(2)/munlock(2)?

2006-03-28 Thread Daniel Rudy
At about the time of 3/28/2006 10:42 PM, Norbert Koch stated the following: > > Daniel Rudy schrieb: >> Hello FreeBSD Hackers, >> >> I've been reading the man page on mlock(2) and a number of questions >> have arisen about it's use. I have looked at malloc and mmap, and I >> have not been able to

Re: What is the proper use of mlock(2)/munlock(2)?

2006-03-28 Thread Norbert Koch
Daniel Rudy schrieb: Hello FreeBSD Hackers, I've been reading the man page on mlock(2) and a number of questions have arisen about it's use. I have looked at malloc and mmap, and I have not been able to figure this one out. There doesn't seem to be any compiler or library options dealing wit

What is the proper use of mlock(2)/munlock(2)?

2006-03-28 Thread Daniel Rudy
Hello FreeBSD Hackers, I've been reading the man page on mlock(2) and a number of questions have arisen about it's use. I have looked at malloc and mmap, and I have not been able to figure this one out. There doesn't seem to be any compiler or library options dealing with this either. 1) How d

Re: cloning a FreeBSD HDD

2006-03-28 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Patrick Tracanelli <[EMAIL PROTECTED]> writes: : : >> I heard its faster if you use two dd's; i.e: : >> : >># dd if=/dev/ad0 bs=64k | dd of=/dev/ad1 bs=64k : >> : >> allowing read and write to proceed in parallel. : > : > : > that's what ddd and 't

Re: Direct access to hadware

2006-03-28 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Eder <[EMAIL PROTECTED]> writes: : Hi all, : : I would like to know if exite some header ".h" in FreeBSD so : that I can make a direct access to hadware in machine with C. : : The intention is to make some things as, for example, to record ' ' in :

Direct access to hadware

2006-03-28 Thread Eder
Hi all, I would like to know if exite some header ".h" in FreeBSD so that I can make a direct access to hadware in machine with C. The intention is to make some things as, for example, to record ' ' in first the 512 bytes of hd or to record one floppy with ' ' of track zero. Eder -- Li

Re: cloning a FreeBSD HDD

2006-03-28 Thread Patrick Tracanelli
I heard its faster if you use two dd's; i.e: # dd if=/dev/ad0 bs=64k | dd of=/dev/ad1 bs=64k allowing read and write to proceed in parallel. that's what ddd and 'team' are for. I don't know if ddd is in the ports as it may clash inname with teh debugger ddd They internally fork and use

Re: cloning a FreeBSD HDD

2006-03-28 Thread Julian Elischer
Joe Koberg wrote: [EMAIL PROTECTED] wrote: On Saturday 25 March 2006 04:42, Mike Meyer wrote: One thing: 1m is a bit small for modern systems. Or for not-so-modern systems. Since nothing else is running, you might as well use all the memory you've got, or as big as you can get a process

Re: cloning a FreeBSD HDD

2006-03-28 Thread Joe Koberg
[EMAIL PROTECTED] wrote: On Saturday 25 March 2006 04:42, Mike Meyer wrote: One thing: 1m is a bit small for modern systems. Or for not-so-modern systems. Since nothing else is running, you might as well use all the memory you've got, or as big as you can get a process to be. 128m or more i