Re: ps_strings

2013-08-20 Thread Konstantin Belousov
and sets the pointers in ps_strings. kern.proc.args sysctl first tries the p_args, and falls back to reading ps_strings and following the pointers if p_args is NULL. Ah, that's what I get for scanning through years of updates too fast. :-) This seems a bit of a worst of both worlds

Re: ps_strings

2013-08-19 Thread Konstantin Belousov
-address limitation. The cost is a bit more kernel code (for the sysctl()s) and this per-process data, but there is no more messing-about with where is ps_strings in this memory-layout / emulation etc. (Meanwhile libkvm still retrieves the arguments. It just does it now with sysctl().) Yes

ps_strings

2013-08-19 Thread Carlos Jacobo Puga Medina
First, I want to thank Super Bisquit, Fernando and Chris for their inputs. Second, the ps_strings struct remains in use to report information about the running process back to the user and operating system, and as such enriches the content of the FreeBSD kernel, so it's worth create this man page

Re: ps_strings

2013-08-19 Thread Chris Torek
Yes, p_args caches the arguments, but not always. Right now, kernel does not cache arguments if the string is longer than 256 bytes. Look for ps_arg_cache_limit in kern_exec.c. setproctitle() always informs the kernel with sysctl and sets the pointers in ps_strings. kern.proc.args sysctl first

Re: ps_strings

2013-08-19 Thread Carlos Jacobo Puga Medina
First, I want to thank Super Bisquit, Fernando and Chris for their inputs. Second, the ps_strings struct remains in use to report information about the running process back to the user and operating system, and as such enriches the content of the FreeBSD kernel, so it's worth create this man page

Re: ps_strings

2013-08-18 Thread Super Bisquit
for documentation to create the ps_strings structure man page because isn't covered in other man page such e.g. execve(2). So, I'm interested to know for what it's currently used. Any input will be appreciated. --CJPM [1] http://lists.freebsd.org/pipermail/freebsd-doc/2013-July/022422

Re: ps_strings

2013-08-18 Thread Fernando ApesteguĂ­a
On Sat, Aug 17, 2013 at 8:00 PM, Carlos Jacobo Puga Medina cjpug...@gmail.com wrote: Hi people, Despite I made a request not long ago[1], I'm looking for documentation to create the ps_strings structure man page because isn't covered in other man page such e.g. execve(2). So, I'm interested

Re: ps_strings

2013-08-18 Thread Chris Torek
Despite I made a request not long ago[1], I'm looking for documentation to create the ps_strings structure man page because isn't covered in other man page such e.g. execve(2). So, I'm interested to know for what it's currently used. Nothing. (Well, backwards compatibility, depending on how far

ps_strings

2013-08-17 Thread Carlos Jacobo Puga Medina
Hi people, Despite I made a request not long ago[1], I'm looking for documentation to create the ps_strings structure man page because isn't covered in other man page such e.g. execve(2). So, I'm interested to know for what it's currently used. Any input will be appreciated. --CJPM [1] http