Re: kqueue periodic timer confusion

2012-07-19 Thread Andriy Gapon
s repost but I'm confused about the responses I >>>>>>>>>> received >>>>>>>>>> in my last post so I'm looking for some clarification. >>>>>>>>>> >>>>>>>>>> Specif

Re: kqueue periodic timer confusion

2012-07-19 Thread Davide Italiano
gt; >> > > > received >> >> >> > > > in my last post so I'm looking for some clarification. >> >> >> > > > >> >> >> > > > Specifically, I though I could use the kqueue timer as >> >> >> >

Re: kqueue periodic timer confusion

2012-07-19 Thread Paul Albrecht
for some clarification. > >> >> > > > > >> >> > > > Specifically, I though I could use the kqueue timer as > >> >> > > > essentially a > >> >> > > > "drop in" replacement for lin

Re: kqueue periodic timer confusion

2012-07-13 Thread John Baldwin
gt; > > > > >> >> > > > Specifically, I though I could use the kqueue timer as essentially a > >> >> > > > "drop in" replacement for linuxfd_create/read, but was surprised that > >> >> > > > the accuracy

Re: kqueue periodic timer confusion

2012-07-13 Thread Davide Italiano
I could use the kqueue timer as essentially a >> >> > > > "drop in" replacement for linuxfd_create/read, but was surprised >> >> > > > that >> >> > > > the accuracy of the kqueue timer is much less than what I need for >> >&g

Re: kqueue periodic timer confusion

2012-07-12 Thread Paul Albrecht
I could use the kqueue timer as essentially > > >> > > > a > > >> > > > "drop in" replacement for linuxfd_create/read, but was surprised > > >> > > > that > > >> > > > the accuracy o

Re: kqueue periodic timer confusion

2012-07-12 Thread Paul Albrecht
ation. > > > > > > > > > > Specifically, I though I could use the kqueue timer as essentially a > > > > > "drop in" replacement for linuxfd_create/read, but was surprised that > > > > > the accuracy of the kqueue time

Re: kqueue periodic timer confusion

2012-07-12 Thread Ian Lepore
received > >> > > > in my last post so I'm looking for some clarification. > >> > > > > >> > > > Specifically, I though I could use the kqueue timer as essentially a > >> > > > "drop in" replacement for linuxfd_cr

Re: kqueue periodic timer confusion

2012-07-12 Thread John Baldwin
t; received > >> > > > in my last post so I'm looking for some clarification. > >> > > > > >> > > > Specifically, I though I could use the kqueue timer as essentially a > >> > > > "drop in" replacement for linuxfd

Re: kqueue periodic timer confusion

2012-07-12 Thread Davide Italiano
; > > Specifically, I though I could use the kqueue timer as essentially a >> > > > "drop in" replacement for linuxfd_create/read, but was surprised that >> > > > the accuracy of the kqueue timer is much less than what I need for my >> > >

Re: kqueue periodic timer confusion

2012-07-12 Thread John Baldwin
t; > "drop in" replacement for linuxfd_create/read, but was surprised that > > > > the accuracy of the kqueue timer is much less than what I need for my > > > > application. > > > > > > > > So my confusion at this point is whethe

Re: kqueue periodic timer confusion

2012-07-12 Thread Ian Lepore
accuracy of the kqueue timer is much less than what I need for my > > > application. > > > > > > So my confusion at this point is whether this is consider to be a bug or > > > "feature"? > > > > > > Here's some test cod

Re: kqueue periodic timer confusion

2012-07-12 Thread John Baldwin
on. > > > > Specifically, I though I could use the kqueue timer as essentially a > > "drop in" replacement for linuxfd_create/read, but was surprised that > > the accuracy of the kqueue timer is much less than what I need for my > > application. >

Re: kqueue periodic timer confusion

2012-07-11 Thread Davide Italiano
y a > "drop in" replacement for linuxfd_create/read, but was surprised that > the accuracy of the kqueue timer is much less than what I need for my > application. > > So my confusion at this point is whether this is consider to be a bug or > "feature"? >

Re: kqueue periodic timer confusion

2012-07-11 Thread Ian Lepore
> "drop in" replacement for linuxfd_create/read, but was surprised that > the accuracy of the kqueue timer is much less than what I need for my > application. > > So my confusion at this point is whether this is consider to be a bug or > "feature"? > >

kqueue periodic timer confusion

2012-07-11 Thread Paul Albrecht
the accuracy of the kqueue timer is much less than what I need for my application. So my confusion at this point is whether this is consider to be a bug or "feature"? Here's some test code if you want to verify the problem: #include #include #include #include #include #include

Re: gpart and it's EBR confusion

2012-04-03 Thread Andrey V. Elsukov
On 03.04.2012 23:46, rank1see...@gmail.com wrote: > GEOM: md0s3: invalid entries in the EBR ignored. > -- > > Not 100% reproducible. > Running again SAME 'gpart destroy' then 'gpart create', worked. This should be fixed in stable/9 with r232535. -- WBR, Andrey V. Elsukov ___

Re: gpart and it's EBR confusion

2012-04-03 Thread Robert Simmons
On Tue, Apr 3, 2012 at 3:46 PM, wrote: > 9.0 R i386 > > EBR scheme never installed > > md0s3 has BSD labels scheme > > # gpart destroy -F md0s3 > md0s3 destroyed > > # gpart create -s BSD md0s3 > gpart: geom 'md0s3': File exists > > # gpart show -p md0s3 > =>      0  1023120  md0s3  EBR  (49

gpart and it's EBR confusion

2012-04-03 Thread rank1seeker
9.0 R i386 EBR scheme never installed md0s3 has BSD labels scheme # gpart destroy -F md0s3 md0s3 destroyed # gpart create -s BSD md0s3 gpart: geom 'md0s3': File exists # gpart show -p md0s3 => 0 1023120 md0s3 EBR (499M) [CORRUPT] 0 1023120 - free - (499M)

confusion

2009-03-18 Thread Aryeh M. Friedman
I just set up mirroring on my dual boot fb-7.1/vistaX32SP1 machine (the dual boot works fine) but I got this message when I attempted to mount vista via sysutils/fusefs-ntfs: Actual VCN (0x336970100) of index buffer is different from expected VCN (0x1). Failed to mount '/dev/mirror/gm0s1'

Device sysctl confusion..

2007-04-15 Thread Daniel O'Connor
I am trying to automatically generate a description for a given device (eg what it's connected to) but I am having trouble with umass. The other disks I have tried (acd, ad, twed) all have dev.name.number sysctl nodes but umass disks seem to be inconsistently named. For example they appear in k

Re: Confusion in acpi_sleep_machdep().

2007-01-01 Thread Ian Dowse
In message <[EMAIL PROTECTED]>, Matthew Dillon w rites: >I'm trying to figure out how the acpi_sleep_machdep() code works and >there are a couple of lines I just don't understand: > >pm = vmspace_pmap(p->p_vmspace); >cr3 = rcr3(); >#ifdef PAE >load_cr3(vtophys(pm->p

Confusion in acpi_sleep_machdep().

2006-12-31 Thread Matthew Dillon
I'm trying to figure out how the acpi_sleep_machdep() code works and there are a couple of lines I just don't understand: pm = vmspace_pmap(p->p_vmspace); cr3 = rcr3(); #ifdef PAE load_cr3(vtophys(pm->pm_pdpt)); #else load_cr3(vtophys(pm->pm_pdir)); #endif

Re: confusion on fopen()/falloc()

2005-02-26 Thread John-Mark Gurney
Yan Yu wrote this message on Sat, Feb 26, 2005 at 01:10 -0800: > Hello, all, > I have a user program as below: > FILE *fd; > while (1) > { > fd= fopen( "tmp", "r" ); > if ( fd == NULL ) > break; > } > > from my understanding, since i open the same file to read, my process

Re: confusion on fopen()/falloc()

2005-02-26 Thread Yan Yu
On Sat, 26 Feb 2005, Yan Yu wrote: > Hello, all, > I have a user program as below: > FILE *fd; > while (1) > { > fd= fopen( "tmp", "r" ); > if ( fd == NULL ) > break; > } > > from my understanding, since i open the same file to read, my process > should create a new file

confusion on fopen()/falloc()

2005-02-26 Thread Yan Yu
Hello, all, I have a user program as below: FILE *fd; while (1) { fd= fopen( "tmp", "r" ); if ( fd == NULL ) break; } from my understanding, since i open the same file to read, my process should create a new file descriptor each time when fopen is called. Therefore,

Re: confusion about kse_create()

2004-03-08 Thread Julian Elischer
On 9 Mar 2004, Bin Ren wrote: > Hi, > > After reading the MAN page and source codes for KSE, I find some parts > contradicting. Maybe the MAN page is out-dated. But I want to confirm this. > > First confusion: > > In KSE MAN: >

confusion about kse_create()

2004-03-08 Thread Bin Ren
Hi, After reading the MAN page and source codes for KSE, I find some parts contradicting. Maybe the MAN page is out-dated. But I want to confirm this. First confusion: In KSE MAN: ... To become multi-threaded, a process must first invoke kse_create(). The

nfs unlink confusion.

2003-10-20 Thread Matthew A Kolb
I am having an anurism over this. Trying to opendir, readdir and unlink files in a directory over nfs (with fbsd-current client and a variety of nfs servers (netapp, linux fbsd) seems to produce unexpected results. if i run this code: #include #include #include #include int main(void) {

Re: telldir()/seekdir() confusion

2003-07-18 Thread Dan Nelson
In the last episode (Jul 18), Alexey Neyman said: > hi, there! > > On Wednesday 09 July 2003 00:30, Dan Nelson wrote: > DN> > pos = telldir(dirp); > DN> > ent = readdir(dirp); > DN> > seekdir(dirp, pos); > DN> > printf("First telldir:%d\nSecond telldir:%d\n", pos, telldir(dirp)); >

Re: telldir()/seekdir() confusion

2003-07-18 Thread Alexey Neyman
hi, there! On Wednesday 09 July 2003 00:30, Dan Nelson wrote: DN> > pos = telldir(dirp); DN> > ent = readdir(dirp); DN> > seekdir(dirp, pos); DN> > printf("First telldir:%d\nSecond telldir:%d\n", pos, telldir(dirp)); DN> I don't think there's any pstandard that says that telldir h

Re: telldir()/seekdir() confusion

2003-07-08 Thread Jp Calderone
On Tue, Jul 08, 2003 at 03:30:26PM -0500, Dan Nelson wrote: > > [snip] > > I don't think there's any pstandard that says that telldir has to > return a seekable file offset, or that consecutive calls on the same > position must return the same value. Think about a filesystem that > uses hashed or

Re: telldir()/seekdir() confusion

2003-07-08 Thread Dan Nelson
In the last episode (Jul 08), Jp Calderone said: > I'm trying to work out some inconsistent behavior in my app across > platforms. On FreeBSD, seekdir() doesn't seem to behave as I expect > it to. Here's a short program that demonstrates my confusion: > > o

telldir()/seekdir() confusion

2003-07-08 Thread Jp Calderone
I'm trying to work out some inconsistent behavior in my app across platforms. On FreeBSD, seekdir() doesn't seem to behave as I expect it to. Here's a short program that demonstrates my confusion: #include #include #include int main() { DIR* dirp; off_t pos; str

Re: Confusion with mknod() and devfs

2001-06-24 Thread Zhihui Zhang
On Sat, 23 Jun 2001, Terry Lambert wrote: > Zhihui Zhang wrote: > > I think you got me wrong. I was talking about a device > > with more than one names. So we can have more than one > > vnode for the same device. (If there is more than one name > > to the same device in the same FS, they can sh

Re: Confusion with mknod() and devfs

2001-06-23 Thread Terry Lambert
Zhihui Zhang wrote: > I think you got me wrong. I was talking about a device > with more than one names. So we can have more than one > vnode for the same device. (If there is more than one name > to the same device in the same FS, they can share the vnode, > otherwise, they cannot.) This is not

Re: Confusion with mknod() and devfs

2001-06-23 Thread Zhihui Zhang
On Fri, 22 Jun 2001, Terry Lambert wrote: > Zhihui Zhang wrote: > > According to the red daemon book, alias vnodes are used to make cache > > coherent (vp as a key). But getblk() stuff does not seem to check it. > > This makes me feel the code is there for historical reasons. > > The "BSD 4.4

Re: Confusion with mknod() and devfs

2001-06-22 Thread Terry Lambert
Zhihui Zhang wrote: > According to the red daemon book, alias vnodes are used to make cache > coherent (vp as a key). But getblk() stuff does not seem to check it. > This makes me feel the code is there for historical reasons. The "BSD 4.4" book was written about a system without a unified VM an

Confusion with mknod() and devfs

2001-06-21 Thread Zhihui Zhang
There is following comment inside ufs_mknod() which says /* * Remove inode, then reload it through VFS_VGET so it is * checked to see if it is an alias of an existing entry in * the inode cache. */ I really can not understand it. For each new disk inode, we call u

Re: FIN_WAIT_2 / TIME_WAIT Confusion

2001-01-08 Thread Bosko Milekic
Hi Michael, What version of FreeBSD are you running? If it's not too much trouble, can you please provide the code you're using to simulate the problem? Are the TIME_WAIT state connections eventually timing out/disappearing? Michael wrote: > If this is not proper place to ask this, let me k

FIN_WAIT_2 / TIME_WAIT Confusion

2001-01-08 Thread Michael Owens
If this is not proper place to ask this, let me know and I'll go elsewhere as it is a TCP question. . . but I specifically use (and prefer) FreeBSD. I wrote a simple little I/O multiplexing thing that can act as a client or server as a personal project in network programming. Everything seems f

Unknown exception/trap confusion

2000-06-19 Thread Kevin Day
Ok, I've got a system that seems to spuriously "panic: unknown/reserved trap". In trying to figure out which exception got triggered, I did a backtrace... (kgdb) bt #0 boot (howto=256) at ../../kern/kern_shutdown.c:303 #1 0xc016a355 in panic (fmt=0xc02c58d9 "unknown/reserved trap") at ../../

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Mike Smith
> > ok: > > #define nfsm_srvmtofh(f) \ > { int fhlen = NFSX_V3FH; \ > if (nfsd->nd_flag & ND_NFSV3) { \ > nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ > fhlen = fxdr_unsigned(int, *tl); \ > if (fhlen == 0) {

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Mike Smith
> > ok: > > #define nfsm_srvmtofh(f) \ > { int fhlen = NFSX_V3FH; \ > if (nfsd->nd_flag & ND_NFSV3) { \ > nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ > fhlen = fxdr_unsigned(int, *tl); \ > if (fhlen == 0) {

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Matthew Dillon
:Right now it seems we're generating 8 bytes of fsid and 12 (padded to 16) :bytes of handle data in the common case for a total of 24 bytes of filehandle. :Then we pad that to 32 bytes for V2 or 64 bytes for V3, with random crud. :Then we copy this around, store it all in memory, transmit it over t

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Alfred Perlstein
On Tue, 3 Aug 1999, Peter Wemm wrote: > Alfred Perlstein wrote: > > On Mon, 2 Aug 1999, Matthew Dillon wrote: > > > > http://big.endian.org/~bright/freebsd/patches/nfsm_subs.diff > > > > This is a patch that Peter Wemm proposed however he had this: > > > > ! if (fhlen < NFSX_V3FH)

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Peter Wemm
Alfred Perlstein wrote: > On Mon, 2 Aug 1999, Matthew Dillon wrote: > > > > > ::> it then rewinds the mbuf pointers (i think) because of the > > ::> over "dissection" above. > > ::> --- > > ::> > > ::> why does it do the copy, then rewind it, it seems like it knows > > ::> it's doing something

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Matthew Dillon
:The whole file needs some documentation. :) :I stared at that for so long wondering why the heck it was doing that. NFS is the worst-documented code in the kernel, VFS is second-worst. Without commit privs, documenting existing code eats too much of my time I'm afraid. With com

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Alfred Perlstein
On Mon, 2 Aug 1999, Matthew Dillon wrote: > > ::> it then rewinds the mbuf pointers (i think) because of the > ::> over "dissection" above. > ::> --- > ::> > ::> why does it do the copy, then rewind it, it seems like it knows > ::> it's doing something wrong and instead of fixing it, it just

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Matthew Dillon
:Right now it seems we're generating 8 bytes of fsid and 12 (padded to 16) :bytes of handle data in the common case for a total of 24 bytes of filehandle. :Then we pad that to 32 bytes for V2 or 64 bytes for V3, with random crud. :Then we copy this around, store it all in memory, transmit it over

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Alfred Perlstein
On Tue, 3 Aug 1999, Peter Wemm wrote: > Alfred Perlstein wrote: > > On Mon, 2 Aug 1999, Matthew Dillon wrote: > > > > http://big.endian.org/~bright/freebsd/patches/nfsm_subs.diff > > > > This is a patch that Peter Wemm proposed however he had this: > > > > ! if (fhlen < NFSX_V3FH

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Peter Wemm
Alfred Perlstein wrote: > On Mon, 2 Aug 1999, Matthew Dillon wrote: > > > > > ::> it then rewinds the mbuf pointers (i think) because of the > > ::> over "dissection" above. > > ::> --- > > ::> > > ::> why does it do the copy, then rewind it, it seems like it knows > > ::> it's doing somethin

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Matthew Dillon
:The whole file needs some documentation. :) :I stared at that for so long wondering why the heck it was doing that. NFS is the worst-documented code in the kernel, VFS is second-worst. Without commit privs, documenting existing code eats too much of my time I'm afraid. With co

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Alfred Perlstein
On Mon, 2 Aug 1999, Matthew Dillon wrote: > > ::> it then rewinds the mbuf pointers (i think) because of the > ::> over "dissection" above. > ::> --- > ::> > ::> why does it do the copy, then rewind it, it seems like it knows > ::> it's doing something wrong and instead of fixing it, it just

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Matthew Dillon
::> it then rewinds the mbuf pointers (i think) because of the ::> over "dissection" above. ::> --- ::> ::> why does it do the copy, then rewind it, it seems like it knows ::> it's doing something wrong and instead of fixing it, it just ::> compensates after the fact. :: ::yes, replying to my

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Matthew Dillon
:On Mon, 2 Aug 1999, Alfred Perlstein wrote: : :> } \ :> if (fhlen != 0) { \ :> nfsm_dissect(tl, u_int32_t *, NFSX_V3FH); \ :> bcopy((caddr_t)tl, (caddr_t)(f), NFSX_V3FH); \ :> if ((nfsd->nd_flag & ND_NFSV3) ==

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Matthew Dillon
::> it then rewinds the mbuf pointers (i think) because of the ::> over "dissection" above. ::> --- ::> ::> why does it do the copy, then rewind it, it seems like it knows ::> it's doing something wrong and instead of fixing it, it just ::> compensates after the fact. :: ::yes, replying to my

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Matthew Dillon
:On Mon, 2 Aug 1999, Alfred Perlstein wrote: : :> } \ :> if (fhlen != 0) { \ :> nfsm_dissect(tl, u_int32_t *, NFSX_V3FH); \ :> bcopy((caddr_t)tl, (caddr_t)(f), NFSX_V3FH); \ :> if ((nfsd->nd_flag & ND_NFSV3) =

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Alfred Perlstein
On Mon, 2 Aug 1999, Alfred Perlstein wrote: > } \ > if (fhlen != 0) { \ > nfsm_dissect(tl, u_int32_t *, NFSX_V3FH); \ > bcopy((caddr_t)tl, (caddr_t)(f), NFSX_V3FH); \ > if ((nfsd->nd_flag & ND_NFSV3) == 0

confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Alfred Perlstein
ok: #define nfsm_srvmtofh(f) \ { int fhlen = NFSX_V3FH; \ if (nfsd->nd_flag & ND_NFSV3) { \ nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ fhlen = fxdr_unsigned(int, *tl); \ if (fhlen == 0) { \

Re: confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Alfred Perlstein
On Mon, 2 Aug 1999, Alfred Perlstein wrote: > } \ > if (fhlen != 0) { \ > nfsm_dissect(tl, u_int32_t *, NFSX_V3FH); \ > bcopy((caddr_t)tl, (caddr_t)(f), NFSX_V3FH); \ > if ((nfsd->nd_flag & ND_NFSV3) ==

confusion about nfsm_srvmtofh bad behavior?

1999-08-02 Thread Alfred Perlstein
ok: #define nfsm_srvmtofh(f) \ { int fhlen = NFSX_V3FH; \ if (nfsd->nd_flag & ND_NFSV3) { \ nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ fhlen = fxdr_unsigned(int, *tl); \ if (fhlen == 0) { \

Re: Dumb IP alias confusion.

1999-05-20 Thread Benjamin Gavin
Hi, You need to either set the netmask of the alias address to 255.255.255.255, or add a manual route statement: route add 127.1 That will do it. Then you will be able to get to the alias address from the aliased machine. On a side note: 1. Does anyone know how to get this same thing to

Dumb IP alias confusion.

1999-05-20 Thread Chuck Youse
I didn't notice this until recently, but on our production web servers I use IP aliasing to host multiple sites on one box. Pretty normal stuff. Here's an ifconfig on one of these boxes: xl0: flags=8843 mtu 1500 inet 208.156.59.51 netmask 0xff00 broadcast 208.156.59.255 inet