Re: determining bus_dma memory usage by driver

2011-10-24 Thread Artem Belevich
On Mon, Oct 24, 2011 at 5:21 PM, Chuck Tuffli wrote: > Is there an easy way to determine the amount of bus_dma memory > allocated by a driver? Something similar to vmstat -m > Would "devinfo -r" do? --Artem ___ freebsd-hackers@freebsd.org mailing list

Re: determining bus_dma memory usage by driver

2011-10-24 Thread Matthew Jacob
On 10/24/2011 5:21 PM, Chuck Tuffli wrote: Is there an easy way to determine the amount of bus_dma memory allocated by a driver? Something similar to vmstat -m bus_dma memory allocations are platform specific. Looking at least amd64 you can see that the memory is carved out M_DEVBUF. ___

Shrinking 4 parititions on a new HP laptop

2011-10-24 Thread Julian H. Stacey
Hi hackers@ A new purchased HP laptop (pavilion entertainment PC dm3 http://reviews.shopping.hp.com/8843/dm3t_series/hp-pavilion-dm3t-customizable-notebook-pc-reviews/reviews.htm had all 4 partitions occupied with Windows 7 Home Prem OA. (Maybe the shop did that) I want just 1 of the 4 f

determining bus_dma memory usage by driver

2011-10-24 Thread Chuck Tuffli
Is there an easy way to determine the amount of bus_dma memory allocated by a driver? Something similar to vmstat -m TIA ---chuck ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send

Re: question about the exchanges of td->td_lock and mtx in sched_switch() of sched_ule

2011-10-24 Thread Attilio Rao
2011/10/13 Haozhong Zhang : > Hi, > > I'm recently reading the code of sched_ule in freebsd 8.2.0 and have two > questions. > > 1. sched_switch() (in sched_ule.c) invokes cpu_switch() (at line 1852) and > thread_unblock_switch() (at line 1867). These two functions exchange > td->td_lock and mtx. Wh

Re: Apache Corefile issues

2011-10-24 Thread Bernd Walter
On Mon, Oct 24, 2011 at 04:52:15PM -0400, Mark Saad wrote: > Hackers > I have a strange apache issue , and I wonder if anyone has seen this before. > I am running Apache 1.3.34 on freeBSD 7.3-RELEASE amd64 . At some > point in the day apache's children segfault and die. No core files are > generate

Apache Corefile issues

2011-10-24 Thread Mark Saad
Hackers I have a strange apache issue , and I wonder if anyone has seen this before. I am running Apache 1.3.34 on freeBSD 7.3-RELEASE amd64 . At some point in the day apache's children segfault and die. No core files are generated. I am not running mod_php either. 1. I have setup the following s

Re: "ps -e" without procfs(5)

2011-10-24 Thread Mikolaj Golub
On Sun, 16 Oct 2011 20:10:05 +0300 Kostik Belousov wrote: KB> In my opinion, the way to implement the feature is to (re)use KB> linprocfs_doargv() and provide another kern.proc sysctl to retrieve the KB> argv and env vectors. Then, ps(1) and procstat(1) can use it, as well as KB> procfs and l

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-24 Thread Dan Nelson
In the last episode (Oct 24), Christopher J. Ruwe said: > On Sun, 23 Oct 2011 19:10:34 -0500 > Dan Nelson wrote: > > In the last episode (Oct 23), Christopher J. Ruwe said: > > > I need to get the maximum size of an pwd-entry to determine the > > > correct buffersize for calling getpwnam_r("uname"

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-24 Thread Christopher J. Ruwe
On Sun, 23 Oct 2011 19:10:34 -0500 Dan Nelson wrote: > In the last episode (Oct 23), Christopher J. Ruwe said: > > I need to get the maximum size of an pwd-entry to determine the > > correct buffersize for calling getpwnam_r("uname",&pwd, buf, > > bufsize, &pwdp). I would like to use sysconf(_SC

Re: kexec or similar for FreeBSD

2011-10-24 Thread Russell Cattelan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 So it has been a while and a lot of hair pulling but kload is sorta alive and kicking. It can now load the kernel from userspace, copy it over the running kernel and jump the the kernel entry point. I'm still having problems getting through the boot p

igb drivers and 8.1-RELEASE-p2

2011-10-24 Thread b. nyec
Hi, I hope this is the proper place to ask this question, if not i do apologize. a little background, I have a few systems running 8.1-RELEASE-p2 with an Intel 82575EB Gigabit Card installed. I had a couple of the systems go down with a panic: page fault... (igb0 taskq).. I've done some searc