Re: Trying to join an already exited pthread

2007-02-07 Thread Steve Watt
hat you're not trying to call pthread_join from within a signal handler. >It this variable on Unix OSes? That the results are unspecified? No. What "unspecified" means? Absolutely. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3"

Re: harddrive no memory ---FreeBSD scenario

2007-03-08 Thread Steve Watt
o read a random address from DDR, a few tens of milliseconds to read a random address from a disk. Note that DDR isn't the fastest memory in the system, either -- there are the L1 and L2 (and sometimes L3) caches as well. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5&qu

Re: sendto() giving EPERM outside a jail

2007-03-22 Thread Steve Watt
>... >n = sendto(s, bufr, strlen(bufr), 0, >(struct sockaddr *)&sockname, sizeof(struct sockaddr_in) ); > >(line 278 of miniupnpd.c). > >Can someone shed light on what the problem is? The application appears to work >fine even with this e

Re: sendto() giving EPERM outside a jail

2007-03-23 Thread Steve Watt
>"HOST:%s:%d\r\n" >... >n = sendto(s, bufr, strlen(bufr), 0, >(struct sockaddr *)&sockname, sizeof(struct sockaddr_in) ); > >(line 278 of miniupnpd.c). > >Can someone shed light on what the problem is? The application appears to work >

Re: sendto() giving EPERM outside a jail

2007-03-27 Thread Steve Watt
On Mar 28, 10:23, "Daniel O'Connor" wrote: } Subject: Re: sendto() giving EPERM outside a jail } } On Saturday 24 March 2007 02:47, Steve Watt wrote: } > >According to my reading of the man page it is not possible to get this } > > error unless I'm using ja

Re: p_vmspace in syscall

2007-07-04 Thread Steve Watt
e data to the remote host. There are some fun potential interactions in there in code I haven't looked at in a long time. I'll resist the urge to dive in and hack something together, since VM systems have a way of being tricky in unexpected places. -- Steve Watt KD6GGD PP-ASEL-IA

Re: Path to executable of current process?

2007-07-20 Thread Steve Watt
proc//exe) and the pid of the process to trace (easy - getpid). >The first argument is trickey since FreeBSD frequently does not have a >/proc filesystem. So it seems kvm_getargv should have this path no? # mount_procfs proc /proc # /bin/ls -l /proc//file Note that if the executable on disk gets r

Re: [Doubt] Can a PCI device communicate with another PCI or other

2008-10-16 Thread Steve Watt
and resource assignment, but once that's complete, any device on the bus can see all others. Whether that's useful depends rather heavily on the devices on the bus, obviously. TANSTAAFL applies, though, in that multiple initiators must be careful not to step on each others' accesses.

tcsh loses the foreground process group?

2008-11-30 Thread Steve Watt
hairy in both places. Does anyone have debugging thoughts? -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices...

Re: tcsh loses the foreground process group?

2008-12-02 Thread Steve Watt
27;m pretty comfortable saying that it's a tcsh bug of some sort, and probably a regression. Hopefully this can be fixed (PR being filed now) before 6.4 releases... -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3"

Re: tcsh loses the foreground process group?

2008-12-03 Thread Steve Watt
On Wed, Dec 03, 2008 at 03:58:36PM -0800, Nate Eldredge wrote: > On Tue, 2 Dec 2008, Steve Watt wrote: > > >In <[EMAIL PROTECTED]> Steve Watt wrote: [ tcsh 6.15.00 ] > >>The symptom is that when I do a long-ish running task inside a `` > >>expansion

Re: Question about PCIe networks

2009-05-19 Thread Steve Watt
side of the bridge would allocate some DMAable memory, and set up the bridge so that is visible to the other side. Set up a pair of rings (one per direction of traffic), and go. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @

Re: enable ECC in OS code?

2009-08-26 Thread Steve Watt
hat rewrites the ECC from the memory with incorrect ECC to do that. If the BIOS is broken to the extent that it doesn't enable ECC on a system that it should be available, whine at the vendor. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3"

Re: enable ECC in OS code?

2009-08-27 Thread Steve Watt
In <200908271130.18073.er...@apsara.com.sg>, er...@apsara.com.sg wrote: >Hi, > >On 27 August 2009 am 06:53:36 Steve Watt wrote: >> In <4a954a35.4030...@icyb.net.ua>, a...@icyb.net.ua wrote: >> >Assuming that ECC data lanes are connected between the two on &

Re: Infrequent disk system hang on 5.4-RELEASE-p8

2006-03-08 Thread Steve Watt
not filing a bug report previously; I'm about to do that. The solution, so far, seems to be "upgrade to 6.x". Whee. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM

Interesting TCP issue

2007-01-01 Thread Steve Watt
ecting Skype to fix their (broken) system? -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices... ___

Re: Interesting TCP issue

2007-01-01 Thread Steve Watt
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: >> From Steve Watt on Monday, January 01, 2007 4:37 PM >> >> # tcpdump -vv -s 1500 -i dc0 -X net 213.244.128.0/18 [ snip ] >> Interesting. I presume it has something to do with the >> idiotically small win

Re: Interesting TCP issue

2007-01-02 Thread Steve Watt
On Jan 1, 23:56, Julian Elischer wrote: } Subject: Re: Interesting TCP issue } Steve Watt wrote: } > One of my users is having trouble receiving mail from Skype. So, } > after some sniffing, I discovered this: } > } > # tcpdump -vv -s 1500 -i dc0 -X net 213.244.128.0/18 } > tcpdum

Re: Interesting TCP issue

2007-01-02 Thread Steve Watt
On Jan 2, 0:06, Steve Watt wrote: } Subject: Re: Interesting TCP issue } On Jan 1, 23:56, Julian Elischer wrote: } } Subject: Re: Interesting TCP issue } } Steve Watt wrote: } } > One of my users is having trouble receiving mail from Skype. So, } } > after some sniffing, I discovere

Re: Interesting TCP issue

2007-01-20 Thread Steve Watt
t_flags |= TF_REQ_SCALE|TF_RCVD_SCALE; - tp->requested_s_scale = sc->sc_requested_s_scale; + tp->snd_scale = sc->sc_requested_s_scale; tp->request_r_scale = sc->sc_request_r_scale; } if (sc->sc_flags & SCF_TIMESTAMP)

Re: Interesting TCP issue

2007-01-22 Thread Steve Watt
On Jan 22, 9:15, Uwe Doering wrote: } Subject: Re: Interesting TCP issue } Steve Watt wrote: } > In <[EMAIL PROTECTED]>, Julian Elischer wrote: } > } > [ Snip discussion of symptoms of window scaling broken when } > talking to at least the skype mail servers. ] } > } >&

Re: ipw3945 assistance?

2007-01-22 Thread Steve Watt
thers who wish to get >this working (and are not used to applying "non-standard" drivers.) What have you tried so far, and how is it failing? http://www.catb.org/~esr/faqs/smart-questions.html Steve -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5

snapshots and innds

2004-12-18 Thread Steve Watt
ad number (100xx) is related to what entry in ps -H. For that matter, when I try to do a "print *(struct proc *)0x{blah}" in kgdb for an address I got out of ps -o pid,uprocp,wchan,command, it doesn't seem to believe that there is a struct proc. Is there an up-to-date (i.e. covers 5

Re: Determining userland return address (from syscall)

2005-01-03 Thread Steve Watt
There don't seem to be better alternatives for doing this securely and still keep reasonable *NIX-like behavior. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM Whois: SW

Re: clock time in milliseconds into a c program

2005-01-19 Thread Steve Watt
In article <[EMAIL PROTECTED]> you write: > >Hi, I need to clock the function execution time into a C >program. I know /usr/include/time.h library but I need to >clock the time in milliseconds. > >Any suggestions, links? % man clock_gettime Is nanoseconds too much? -

Re: sched_4BSD

2005-03-06 Thread Steve Watt
understand, in NPTL, each thread gets a scheduler slot, and it is my understanding that there is nothing to protect against the issue that Julian is asking about (1000 threads of a single process *do* get 1000 times the time slices). Whether that is a bug or a feature depends very heavily on

Re: sched_4BSD

2005-03-06 Thread Steve Watt
In <[EMAIL PROTECTED]>, Kamal R. Prasad <[EMAIL PROTECTED]> wrote: >--- Steve Watt <[EMAIL PROTECTED]> wrote: [ snip ] >> NPTL is a particular (less brain damaged than >> LinuxThreads) >> implementation of the POSIX thread standard. >> &g

Re: Causing a process switch to test a theory.

2005-03-20 Thread Steve Watt
t's another layer of indirection, though. If all of the children have separate pipes to the parent, and then the parent logs to your program, all should be fine. But at the kernel level, yes, writes longer than PIPE_BUF might get interleaved. The longer the write, the higher the probability,

Re: Causing a process switch to test a theory.

2005-03-21 Thread Steve Watt
On Mar 21, 10:05, Matthew Hagerty wrote: } Steve Watt wrote: } >In <[EMAIL PROTECTED]>, } > [EMAIL PROTECTED] wrote: } >That's another layer of indirection, though. If all of the children } >have separate pipes to the parent, and then the parent logs to your } >p

Re: Route/arp help?

2005-04-13 Thread Steve Watt
eeded the route command...) > >Oh well, Ive probably confused you, and myself as well. :-) I think you're trying to over-complexify the problem. All you really need to do is: # ifconfig ed0 alias 10.0.0.2/24 # telnet 10.0.0.1 No silly route commands, no forcing of ARP. Just add t

EPERM from write()

2005-05-03 Thread Steve Watt
y and mid April, but enough sites work that I didn't notice it until recently. I'm pretty stumped, and looking for ideas... Solving the TLS handshake problem is first, but that 2 byte skip in sequence numbers is _weird_. I suppose it could be related somehow. -- Steve Watt KD6GGD PP-ASEL-IA

Re: snapshots and innds

2005-05-22 Thread Steve Watt
question (0xc19af318) in vm_object_sync(), line 1022. Now for the really hard question: Fixes. The obvious (but not so elegant) fix is for the snapshot creation code to run under Giant, which will hold vm_object_sync out at the correct place. But that's *adding* Giant, which seems li

Re: snapshots and innds

2005-06-01 Thread Steve Watt
fs". If that's not what it looks like, you're not seeing this problem. The best choice at that point would be to type "call doadump" at the DDB prompt to get a kernel dump (going through doadump seems to be the most reliable way to get a usable dump, at least for me). --

Re: unitialized memory is all zeros...why not garbage instead?

2005-06-13 Thread Steve Watt
re a different document I should be reading? And if calloc() grabs something from the in-process "used, now free" pool, it will be zeroed. If malloc() grabs something from that same pool, it won't be. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N

getdirtybuf()'s kdb_backtrace fired

2005-08-10 Thread Steve Watt
The system in question is 5-STABLE updated around 17Z on 2 May. It's running inn, sendmail, and a bevy of milterish things, but is otherwise pretty quiet, a few thousand email per day, no jails, no weird (i.e. all are ufs or devfs) filesystems in use. -- Steve Watt KD6GGD PP-ASEL-IA

Re: perl's tie problem

2005-08-12 Thread Steve Watt
Down in the guts of the open() syscall, there's a line that effectively says file_permissions = passed_in_permissions & ~umask; It's working as designed. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Int

Re: nvi for serious hacking

2005-10-19 Thread Steve Watt
religious discussion I try to avoid. >It's hard choice for me to switch old good Emacs to something new, so please >give me your opinions. I've tried emacs several times, and keep going back to vi because I don't like hitting so many modifier keys.

kernel environment between reboots, diskless

2004-01-14 Thread Steve Watt
for this sort of application, if there was a way to stash somewhere between 2 and 8 bytes somewhere... Thanks for insights! Pls cc: me directly on replies. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM

Re: kernel environment between reboots, diskless

2004-01-14 Thread Steve Watt
On Jan 14, 13:11, Brooks Davis wrote: } On Wed, Jan 14, 2004 at 12:55:49PM -0800, Steve Watt wrote: } > I'm working on a dataless system that will be booting and rooting } > from flash for some environmental chamber (thermal) tests, and } > logging the results to an NFS server outsi

Re: kernel environment between reboots, diskless

2004-01-14 Thread Steve Watt
On Jan 14, 13:24, Brooks Davis wrote: } On Wed, Jan 14, 2004 at 01:16:01PM -0800, Steve Watt wrote: } > On Jan 14, 13:11, Brooks Davis wrote: } > } On Wed, Jan 14, 2004 at 12:55:49PM -0800, Steve Watt wrote: } > } > I'm working on a dataless system that will be booting and roo

Re: send(2) does not block, send(2) man page wrong?

2004-01-26 Thread Steve Watt
(now.tv_nsec / 10.); ts = start.tv_sec + (start.tv_nsec / 10.); printf("%d loops, %f elapsed, ", loops, te - ts); printf("time per loop: %.3f us\n", ((te - ts) / loops) * 100.); return 0; } -- Steve Watt KD6GGD PP-ASEL-IA

Re: how to flush out cache.?

2004-04-21 Thread Steve Watt
y after it's written to disk"? >a syscall discard_cached_blocks(fd); > > >? >any other suggestions? What are you hoping to accomplish? There are probably other ways to solve the larger problem. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20&

Re: how to flush out cache.?

2004-04-21 Thread Steve Watt
On Apr 21, 13:28, Julian Elischer wrote: } Subject: Re: how to flush out cache.? } } On Wed, 21 Apr 2004, Steve Watt wrote: } } > In article <[EMAIL PROTECTED]> you write: } > > } > >Ok so I have an application where I need to } > >reread a file I have just writte

Re: api for sharing memory from kernel to userspace?

2004-05-19 Thread Steve Watt
erating system was to create a shared memory segment with an implementation-reserved name, and then have the application shm_open the name and mmap it in. Shouldn't be hard with a device driver. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" /

Re: Booting encrypted

2004-09-07 Thread Steve Watt
on *acker) incapable of getting around such a thing probably won't be trying to reverse-engineer it anyhow. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM Whois:

Re: Booting encrypted

2004-09-07 Thread Steve Watt
ty to the system to have the bootable partition encrypted, or else you wind up requiring a password to boot (not necessarily a bad thing, but probably not appropriate for your application). -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Intern

PCI bridges & interrupts

2003-09-24 Thread Steve Watt
on pcib6 +pci-: pci7 exists, using next available unit number pcib7: on motherboard -pci7: on pcib7 +pci8: on pcib7 ex_isa_identify() ata-: ata0 exists, using next available unit number ata-: ata1 exists, using next available unit number - - - >8 - - - dmesg d

RE: PCI bridges & interrupts

2003-09-24 Thread Steve Watt
On Sep 24, 16:38, John Baldwin wrote: } Subject: RE: PCI bridges & interrupts } } On 24-Sep-2003 Steve Watt wrote: } > [ Too advanced for -questions? Trying again. ] } > } > I'm having a strange problem with interrupts, PCI bridges, and } > FreeBSD 4-STABLE (cvsupped

RE: PCI bridges & interrupts

2003-09-24 Thread Steve Watt
On Sep 24, 18:17, John Baldwin wrote: } Subject: RE: PCI bridges & interrupts } } On 24-Sep-2003 Steve Watt wrote: } > On Sep 24, 16:38, John Baldwin wrote: } > } Subject: RE: PCI bridges & interrupts } > } > And if I were clever, I would've mentioned that it's in t