Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Adrian Chadd
Hi, Here's a trace with powerd/sleep states disabled, but I haven't set machdep.idle=spin. I'll try it with that in a sec. http://people.freebsd.org/~adrian/ath/ktr-notaskq-1.out.gz The entries are still out of whack in places, but it doesn't look like it's necessarily due to out of sync TSCs..

Re: usertime stale at about 371k seconds

2012-05-31 Thread Andrey Zonov
On 5/30/12 11:27 PM, Andrey Zonov wrote: Hi, I have long running process for which `ps -o usertime -p $pid' shows always the same time - 6190:07.65, `ps -o cputime -p $pid' for the same process continue to grow and now it's 21538:53.61. It looks like overflow in resource usage code or

bus device/ivars

2012-05-31 Thread Norbert Koch
Hello, I have written a bus device driver which itself is a pci driver. Child devices may allocate resources from my bus device. My bus device does the usual management of resources through the children's ivars. My question is this: The bus device mallocs the children's ivars in bus_add_child

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Andriy Gapon
Sorry to hijack this thread, but just recently I've stumbled upon this Linux tool: http://lwn.net/Articles/353295/ perf sched latency seems to be particularly convenient and useful. The idea to track time between a point when a thread is waken up and a point when the thread actually run was

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Ryan Stone
On Thu, May 31, 2012 at 8:33 AM, Andriy Gapon a...@freebsd.org wrote: In this vein it might make sense to enable KTR and KTR_SCHED in GENERIC. KTR_SCHED comes with a performance hit. Besides, with the DTrace sched provider that I committed this month (and MFC'ed yesterday) you can collect

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Andriy Gapon
on 31/05/2012 15:48 Ryan Stone said the following: On Thu, May 31, 2012 at 8:33 AM, Andriy Gapon a...@freebsd.org wrote: In this vein it might make sense to enable KTR and KTR_SCHED in GENERIC. KTR_SCHED comes with a performance hit. Yep, I realize that. But I hope that it is not too huge

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Ryan Stone
On Thu, May 31, 2012 at 8:48 AM, Ryan Stone ryst...@gmail.com wrote: KTR_SCHED comes with a performance hit.  Besides, with the DTrace sched provider that I committed this month (and MFC'ed yesterday) you can collect schedgraph data with a D script. I suppose it would have been helpful to

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Adrian Chadd
Hi, That's cool and one of the things I'm using this to investigate. However, I'm still seeing weird TSC behaviour, which I'd like to finish trying to root cause before moving onto bigger and weirder things. I'm not sure how feasible it'd be to make KTR work with power saving modes enabled on

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Fabian Keil
Ryan Stone ryst...@gmail.com wrote: On Thu, May 31, 2012 at 8:33 AM, Andriy Gapon a...@freebsd.org wrote: In this vein it might make sense to enable KTR and KTR_SCHED in GENERIC. KTR_SCHED comes with a performance hit. Besides, with the DTrace sched provider that I committed this month

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-31 Thread John Baldwin
On Wednesday, May 30, 2012 3:56:02 pm Mark Felder wrote: On Wed, 30 May 2012 12:17:07 -0500, John Baldwin j...@freebsd.org wrote: Humm, can you test it with 2 CPUs? We primarily only run with 1 CPU. We have seen it crash on multiple CPU VMs. Also, Dane Foster appeared to have been

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-31 Thread Mark Felder
So when this hang happens, there never is a real panic. It just sits in a state which I describe as like being in a deadlock. How would I go about getting a crashdump if it never panics? Is it possible to do the dump over a network or something because I don't believe it can write through

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread John Baldwin
On Wednesday, May 30, 2012 6:02:15 pm Adrian Chadd wrote: Hi, I've re-run the test with powerd and sleep state stuff disabled - lo and behold, UDP tests are now up around 240-250MBit, what I'd expect for this 2 stream 11n device. So why is it that I lose roughly 80MBit of throughput with

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Alexander Motin
On 05/31/12 01:02, Adrian Chadd wrote: I've re-run the test with powerd and sleep state stuff disabled - lo and behold, UDP tests are now up around 240-250MBit, what I'd expect for this 2 stream 11n device. So why is it that I lose roughly 80MBit of throughput with powerd and C2/C3 enabled,

Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-31 Thread John Baldwin
On Thursday, May 31, 2012 11:11:11 am Mark Felder wrote: So when this hang happens, there never is a real panic. It just sits in a state which I describe as like being in a deadlock. How would I go about getting a crashdump if it never panics? Is it possible to do the dump over a network

Re: bus device/ivars

2012-05-31 Thread John Baldwin
On Thursday, May 31, 2012 4:19:46 am Norbert Koch wrote: Hello, I have written a bus device driver which itself is a pci driver. Child devices may allocate resources from my bus device. My bus device does the usual management of resources through the children's ivars. My question is

Re: bus device/ivars

2012-05-31 Thread Warner Losh
On May 31, 2012, at 9:54 AM, John Baldwin wrote: On Thursday, May 31, 2012 4:19:46 am Norbert Koch wrote: Hello, I have written a bus device driver which itself is a pci driver. Child devices may allocate resources from my bus device. My bus device does the usual management of

announce: C Conference CFP closing June 7th

2012-05-31 Thread Brandon Philips
Hello- The first ever C Conference is happening August 28th, 2012 in San Diego, CA. The target audience are people who implement systems in C. Whether that be new languages, libraries, kernels, daemons or games. A reverse call for papers is up and closes June 7th. Submit talks you would like to

Re: bus device/ivars

2012-05-31 Thread John Baldwin
On Thursday, May 31, 2012 12:15:48 pm Warner Losh wrote: On May 31, 2012, at 9:54 AM, John Baldwin wrote: On Thursday, May 31, 2012 4:19:46 am Norbert Koch wrote: Hello, I have written a bus device driver which itself is a pci driver. Child devices may allocate resources from my

Re: ULE/sched issues on stable/9 - why isn't preemption occuring?

2012-05-31 Thread Adrian Chadd
On 31 May 2012 07:55, John Baldwin j...@freebsd.org wrote: On Wednesday, May 30, 2012 6:02:15 pm Adrian Chadd wrote: Hi, I've re-run the test with powerd and sleep state stuff disabled - lo and behold, UDP tests are now up around 240-250MBit, what I'd expect for this 2 stream 11n device.

Re: usertime stale at about 371k seconds

2012-05-31 Thread Adrian Chadd
Hi, Would you please file a PR with all of your work? :-) Thanks, Adrian ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org