Re:Moving Google toward the mainline
by packetslave on Tuesday October 05, 2021 @11:05PM
(#28768698)
ever wonder why linux supports command line arguments that are 2mb long?
[ Parent
| on HN ]
Ever wondered absl flags library has a --flagfile special flag?
Re:Moving Google toward the mainline
by packetslave on Tuesday October 05, 2021 @11:44PM
(#28768947)
I wonder if ABSL supports gzipped flags...
Probably not, since --flagfile accepts a list of filenames :-)
https://github.com/abseil/abseil-cpp/blob/1ae9b71c474628d60e...
Re:Moving Google toward the mainline
by matheusmoreira on Wednesday October 06, 2021 @12:19AM
(#28769150)
Does Linux need explicit support for this? Command line arguments and environment variables are copied to the stack of the new process. I would expect the stack's size to be the limiting factor.
Before they relaxed it 15 years ago, Linux had a hard limit at 128KiB for args + env on x86. After the change it was variable up to 2MiB.
https://github.com/torvalds/linux/commit/b6a2fea39318e43fee8...