ulimit -m unlimited
ulimit -a Output from the ulimit command should be similar to the following:time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2097152
stack(kbytes) 32768
memory(kbytes) unlimited
coredump(blocks) 2097151
nofiles(descriptors) 8192
but after I reboot the system, ulimit -m gives me
memory(kbytes) 32768
That's one issue and the other one is
getconf ARG_MAXgives me: something 288124
but i want to make it above 524288 ; so i run the command chdev -l sys0 -a ncargs=128
it gives me error
but if I run --> chdev -l sys0 -a ncargs=512 it works
but
getconf ARG_MAX doesn't give me 524288
you don't have to adjust kernel parameters. check the chuser command or /etc/security/limits file. you can set a system wide default or at the per-user level.
ncargs is how much memory is used
arg_max is the length of the parameter list + environment
Do you really need to send 500k of data as an argument?
you can change the memory parameters at the user level. use the chuser command or editing /etc/security/limits. a reboot is not required but any processes would need to be restarted for this to take effect.
after changing ncargs to 512 what was the output of lsattr? It should be larger and that is ok in your case.