Increasing ncargs on 4.0.5

LarBob

Administrator
Feb 8, 2019
51
27
18
I'm currently working on compiling GCC 3.0.4 on my Indigo, and the default value of ncargs is too small at a certain point during the process. I messed around a bit and was able to figure out how to increase it (4.0.5 has no `systune`).

Line 256 of `/usr/sysgen/master.d/kernel` should be
Code:
#define SYSNCARGS       (10*1024)       /* wastes stack space if too large */
by default. I changed `10*1024` to `50*1024` and that worked successfully.

After you make this change, run `autoconfig` to generate a new kernel. Once you reboot, the new ncargs value should be in effect.
 
Last edited:

onre

SYS 64738
Feb 8, 2019
140
88
28
Toijala, Finland
AFAIK it isn't any different now either, the default is just way larger. Looks like the Linux on my laptop could execute a command line of ~2 megabytes.
 

About us

  • Silicon Graphics User Group (SGUG) is a community for users, developers, and admirers of Silicon Graphics (SGI) products. We aim to be a friendly hobbyist community for discussing all aspects of SGIs, including use, software development, the IRIX Operating System, and troubleshooting, as well as facilitating hardware exchange.

User Menu