Re: ps_strings

2013-08-20 Thread Konstantin Belousov
le() always informs the kernel with sysctl 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 o

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

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. ker

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

Re: ps_strings

2013-08-19 Thread Konstantin Belousov
This removes the fixed-virtual-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 a

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

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 > pa

Re: ps_strings

2013-08-18 Thread Super Bisquit
http://forums.freebsd.org/showthread.php?p=228128 http://www.dolphinburger.com/cgi-bin/bsdi-man?proto=1.1&query=ps_strings&msection=5&apropos=0 On Sat, Aug 17, 2013 at 2:00 PM, Carlos Jacobo Puga Medina < cjpug...@gmail.com> wrote: > Hi people, > > Despite I made a r

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