Re: svn commit: r214409 - head/sys/kern

2010-10-28 Thread David Xu
Garrett Cooper wrote: On Thu, Oct 28, 2010 at 2:54 AM, David Xu wrote: Garrett Cooper wrote: On Wed, Oct 27, 2010 at 9:22 AM, Andriy Gapon wrote: [patch attachment was lost] Ugh... Mailman hates me I guess :(... on 27/10/2010 19:07 Garrett Cooper said the following: How about this pat

Re: svn commit: r214409 - head/sys/kern

2010-10-28 Thread Garrett Cooper
On Thu, Oct 28, 2010 at 2:54 AM, David Xu wrote: > Garrett Cooper wrote: >> >> On Wed, Oct 27, 2010 at 9:22 AM, Andriy Gapon wrote: >>> >>> [patch attachment was lost] >> >> Ugh... Mailman hates me I guess :(... >> >>> on 27/10/2010 19:07 Garrett Cooper said the following:    How about

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread David Xu
Garrett Cooper wrote: On Wed, Oct 27, 2010 at 9:22 AM, Andriy Gapon wrote: [patch attachment was lost] Ugh... Mailman hates me I guess :(... on 27/10/2010 19:07 Garrett Cooper said the following: How about this patch? I implemented this as a readonly tunable and I don't think that it'

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread Garrett Cooper
On Wed, Oct 27, 2010 at 9:22 AM, Andriy Gapon wrote: > > [patch attachment was lost] Ugh... Mailman hates me I guess :(... > on 27/10/2010 19:07 Garrett Cooper said the following: >>     How about this patch? I implemented this as a readonly tunable and > > I don't think that it's correct to cal

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread Kostik Belousov
On Wed, Oct 27, 2010 at 04:37:38PM +, David Xu wrote: > Pawel Jakub Dawidek wrote: > >On Wed, Oct 27, 2010 at 10:49:12AM +, David Xu wrote: > >>I really hate to see such a problem that userland can not figure out > >>what kernel is using, I try hardly to guess, but still can not find > >>wh

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread Robert N. M. Watson
On 27 Oct 2010, at 13:56, David Xu wrote: >> Yay, it's fd_set all over again :-). >> >> It sounds like we might just need to add a sysctl and a few wrapper >> functions in userspace along the lines of (hand-wave): >> >> cpuset_t*cpuset_alloc(); >> void cpuset_free(); >> >> And per

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread Garrett Cooper
On Wed, Oct 27, 2010 at 5:56 AM, David Xu wrote: > Robert Watson wrote: >> >> On Wed, 27 Oct 2010, David Xu wrote: >> > I really hate to see such a problem that userland can not figure out > what kernel is using, I try hardly to guess, but still can not find what > it > is using.

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread David Xu
Robert Watson wrote: On Wed, 27 Oct 2010, David Xu wrote: I really hate to see such a problem that userland can not figure out what kernel is using, I try hardly to guess, but still can not find what it is using. yes, I think the doc may need to be fixed or another syscall is needed. W

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread Robert Watson
On Wed, 27 Oct 2010, David Xu wrote: I really hate to see such a problem that userland can not figure out what kernel is using, I try hardly to guess, but still can not find what it is using. yes, I think the doc may need to be fixed or another syscall is needed. Well... Jeff's code in

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread Garrett Cooper
On Wed, Oct 27, 2010 at 9:37 AM, David Xu wrote: > Pawel Jakub Dawidek wrote: >> >> On Wed, Oct 27, 2010 at 10:49:12AM +, David Xu wrote: >>> >>> I really hate to see such a problem that userland can not figure out >>> what kernel is using, I try hardly to guess, but still can not find >>> wha

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread David Xu
Pawel Jakub Dawidek wrote: On Wed, Oct 27, 2010 at 10:49:12AM +, David Xu wrote: I really hate to see such a problem that userland can not figure out what kernel is using, I try hardly to guess, but still can not find what it is using. yes, I think the doc may need to be fixed or another sys

Re: svn commit: r214409 - head/sys/kern

2010-10-27 Thread Pawel Jakub Dawidek
On Wed, Oct 27, 2010 at 10:49:12AM +, David Xu wrote: > I really hate to see such a problem that userland can not figure out > what kernel is using, I try hardly to guess, but still can not find > what it is using. yes, I think the doc may need to be fixed or > another syscall is needed. Maybe

Re: svn commit: r214409 - head/sys/kern

2010-10-26 Thread David Xu
Garrett Cooper wrote: On Wed, Oct 27, 2010 at 3:49 AM, David Xu wrote: Garrett Cooper wrote: On Tue, Oct 26, 2010 at 7:32 PM, David Xu wrote: Author: davidxu Date: Wed Oct 27 02:32:54 2010 New Revision: 214409 URL: http://svn.freebsd.org/changeset/base/214409 Log: If input parameter cpuset

Re: svn commit: r214409 - head/sys/kern

2010-10-26 Thread Garrett Cooper
On Wed, Oct 27, 2010 at 3:49 AM, David Xu wrote: > Garrett Cooper wrote: >> >> On Tue, Oct 26, 2010 at 7:32 PM, David Xu wrote: >>> >>> Author: davidxu >>> Date: Wed Oct 27 02:32:54 2010 >>> New Revision: 214409 >>> URL: http://svn.freebsd.org/changeset/base/214409 >>> >>> Log: >>>  If input para

Re: svn commit: r214409 - head/sys/kern

2010-10-26 Thread David Xu
Garrett Cooper wrote: On Tue, Oct 26, 2010 at 7:32 PM, David Xu wrote: Author: davidxu Date: Wed Oct 27 02:32:54 2010 New Revision: 214409 URL: http://svn.freebsd.org/changeset/base/214409 Log: If input parameter cpusetsize is zero, give userland size of cpuset mask kernel is using. Modifie

Re: svn commit: r214409 - head/sys/kern

2010-10-26 Thread Garrett Cooper
On Tue, Oct 26, 2010 at 7:32 PM, David Xu wrote: > Author: davidxu > Date: Wed Oct 27 02:32:54 2010 > New Revision: 214409 > URL: http://svn.freebsd.org/changeset/base/214409 > > Log: >  If input parameter cpusetsize is zero, give userland size of cpuset mask >  kernel is using. > > Modified: >  h

svn commit: r214409 - head/sys/kern

2010-10-26 Thread David Xu
Author: davidxu Date: Wed Oct 27 02:32:54 2010 New Revision: 214409 URL: http://svn.freebsd.org/changeset/base/214409 Log: If input parameter cpusetsize is zero, give userland size of cpuset mask kernel is using. Modified: head/sys/kern/kern_cpuset.c Modified: head/sys/kern/kern_cpuset.c =