I am trying to find the cause of some OS wonkiness, and am concerned about environment variables.
The software I have been handed puts an incredibly high amount of environment variables into the user's
When I type
set | wc the result is 9571 bytes long! There are 184 entries. To me, this seems inordinately large, but I don't have anything explicit to point at and say "this is wrong because xyz".
I see nothing in the ulimit documentation that speaks about environment variable total size, but am concerned. I'm not worried about overall memory utilization (there's enough to do what I need), but I am worried about overrunning some internal limit and causing odd behavior in the OS (probably not germane to the question I'm asking, but the "odd behavior" is that shared memory queues are not giving me back all the data I put in on the other end. I'm getting around 5% out).
Every single script that starts up, every single shell that is run, and every single binary that runs gets a full, individual copy of the environment variables, and I think 9k is too big. Should this be a worry, or am I concerned over nothing?
I'm running on an embedded x86 QNX 6.4.1 Neutrino system with half a gig of RAM.