Re: Managing userland data pointers in kqueue/kevent

2013-05-14 Thread Julian Elischer
On 5/13/13 2:44 PM, Paul LeoNerd Evans wrote: On Mon, 13 May 2013 11:23:45 -0700 Adrian Chadd wrote: Just as a data point, I managed 50,000 + connections, at 5,000 + a second, doing a gigabit + of traffic, mid-2000s, with the userland management of all of the socket/disk FD stuff. The biggest

Re: How to get ucred/xucred in user space?

2013-05-14 Thread Konstantin Belousov
On Tue, May 14, 2013 at 10:00:21AM +0200, Mike Ma wrote: > Hi folks, > > Can I ask if there's any way to get ucred/xucred of a process in user space? > As I'm trying to port glustertfs and it's a userland filesystem, I need to > get secondary groups of a process. > > AFAIK, Linux gets them in /pr

How to get ucred/xucred in user space?

2013-05-14 Thread Mike Ma
Hi folks, Can I ask if there's any way to get ucred/xucred of a process in user space? As I'm trying to port glustertfs and it's a userland filesystem, I need to get secondary groups of a process. AFAIK, Linux gets them in /proc and NetBSD gets them in this way: int name[] = { CTL_KERN, K