anyone running the ofed code

2013-05-10 Thread Vijay Singh
Apologies for the cross post. Were trying out the ofed code and running into some issues, so would love to discuss. -vijay ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any

vmspace_fork()

2013-04-23 Thread Vijay Singh
Hackers, what does hitting the following assert in vmspace_fork() imply? 3101 http://fxr.watson.org/fxr/source/vm/vm_map.c#L3101 new_map = vm2 http://fxr.watson.org/fxr/ident?im=3;i=vm2-vm_map http://fxr.watson.org/fxr/ident?im=3;i=vm_map; 3102 http://fxr.watson.org/fxr/source/vm/vm_map.c#L3102

copyinstr()

2013-04-08 Thread Vijay Singh
Hi, I was looking for some help with copyinstr() on an amd64 platform. My from address happens to be in the kernel (stack). I am getting an EFAULT, and I am wondering how to fix that. Would using memory from malloc() make a difference? -vijay ___

KVERIFY for non-debug invariants?

2012-12-05 Thread Vijay Singh
All. KASSERT() is a really need way of expressing invariants when INVARIANTS is defined. However for regular, non-INVARIANTS code folks have the typical if() panic() combos, or private macros. Would a KVERIFY() that does this in non-INVARIANTS code make sense? -vijay

vm info from a hung system

2012-09-13 Thread Vijay Singh
Need some expert help. I have a system that is hung hard, and I was able to get it into gdb. From show_vmstat I see: (kgdb-amd64-7.4-95) show_vmstat SYSTEM MEMORY INFORMATION: mem_wire: 285970432 (272MB) Wired: disabled for paging out mem_active: +400105472 (381MB) Active:

USB issue on 8.2

2012-02-23 Thread Vijay Singh
Hi hackers. I am seeing an issue where the USB controller is generating a large number of interrupts. last pid: 6639; load averages: 1.39, 1.48, 2.46 up 0+01:07:1412:35:05 2590 processes:9 running, 462 sleeping, 3 zombie, 2116 waiting CPU: 0.2% user, 0.0% nice, 11.5% system, 10.6%

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-15 Thread Vijay Singh
Hi John, (kgdb-amd64-6.8-71) f 5 #5  0x803b73e6 in softclock (arg=0x80c90f40) at ../../../../sys/kern/kern_timeout.c:461 461                                           class-lc_unlock(c_lock); (kgdb-amd64-6.8-71) l 456                                           lastfunc =

Re: Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2012-02-15 Thread Vijay Singh
Out of curiosity, where does your code comes from ? The same snippet from the  `release/8.1.0' branch does not refer to `Giant' at all, it only reads:               if (c_lock != NULL) {                       class-lc_lock(c_lock, sharedlock); Arnaud, I added that code to track down the

Panic in 8.1 in softclock(): mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185

2011-11-06 Thread Vijay Singh
Hackers. I am hitting a panic on 8.1 in the softclock() code. Anyone seen this? PANIC : mutex Giant not owned at ../../../../sys/kern/kern_mutex.c:185 (kgdb-amd64-6.8-71) bt #0 breakpoint () at ./machine/cpufunc.h:64 #1 0x803d8b82 in kdb_enter (why=0x806ca339 panic,

about freebsd boot1.S

2004-09-30 Thread vijay singh
hello all, i am trying to understand the freebsd boot code. i saw that the 1st stage boot loader relocates itself from 7c00 to 700. why is this done? if the run time kernel were to switch to real-mode and transfer control to this location (0700) would the 1st stage boot program run again? for

jump from kernel to loader

2004-09-22 Thread vijay singh
hello, i have some exposure to the freebsd code, but not extensive. i am reading the sys/boot code, and saw that the 3 stage boot process involves a jump from the loader to the kernel in the last phase. i was wondering if it is possible to engineer the kernel to jump back to the loader in some

help with sendfile code

2003-09-11 Thread vijay singh
Hello hackers. What would be the FreeBSD 2.1 equivalent of the following sendfile code from uipc_syscalls.c for (off = uap-offset; ; off += xfsize, sbytes += xfsize) { vm_pindex_t pindex; vm_offset_t pgoff; pindex = OFF_TO_IDX(off);

Re: kqueue

2002-09-25 Thread vijay singh
Hi, this is in no way related to the kqueue question asked below but to event notification mechanisms in general. I was wondering if there is some paper or design that talks about how such a facility could be provided in a Unix type kernel. Kqueue is fairly recent, and I dont know what its