View Single Post
Old 07-23-2013, 09:52 AM   #27
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by NullNix View Post
Yeah, ps just reads /proc/$pid/cmdline, and that is hardwired to display at most one page of output (see fs/proc/base.croc_pid_cmdline() in the kernel source). Suboptimal really, but nobody's souped it up to iterate across the full command line yet.
Indeed.
That issue has seen a lot of discussion over time.

The current position is: "Move your output to the /sys tree if you need more than a single page 'copy-to-user-space' "

auFS had to move out of /proc into /sys because of the size limitation, for instance.
knc1 is offline   Reply With Quote