This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In Linux SDK, where can I check or change the stack size and heap size of the ARM program and DSP program ?
For the stack size of a DSP program, perhaps look a the linker command file for the DSP program.
On the arm to get the current Stack size,
root@am180x-evm:~# ulimit -atime(seconds) unlimitedfile(blocks) unlimiteddata(kb) unlimitedstack(kb) 8192coredump(blocks) 0memory(kb) unlimitedlocked memory(kb) 64process 989nofiles 1024vmemory(kb) unlimitedlocks unlimited
<< setting the stack size on the ARM to 32K >>
root@am180x-evm:~# ulimit -s 32768
root@am180x-evm:~# ulimit -atime(seconds) unlimitedfile(blocks) unlimiteddata(kb) unlimitedstack(kb) 32768coredump(blocks) 0memory(kb) unlimitedlocked memory(kb) 64process 989nofiles 1024vmemory(kb) unlimitedlocks unlimited
In reply to Schuyler Patton:
Hi Schuyler,
Your method is not a permanent change because I need to change it every time when I run the program.
How can I change stack size permanently so that when I compile and run the ARM program, the change is permanent ?
Similarly, how to permanently change the heap size size of the ARM program ?
Thanks,
Mr Tan
In reply to std:
There are no limits stored in the program file.
Heap and stack sizes are user resource limits, which can be set for all programs run from a shell with the ulimit command, or from the program itself with the setrlimit system call (if the user has sufficient privileges; see the man page).
Hi,
I am using am335x platform and running my customized applications using SDK7. I am running some apps in background monitoring.
After some time my system is very slow. Is there any chance to improve my system with good performance using any ulimit command.
In my system the below parameters are default configured.
root@am335x-evm:~# ulimit -acore file size (blocks, -c) 0data seg size (kbytes, -d) unlimitedscheduling priority (-e) 0file size (blocks, -f) unlimitedpending signals (-i) 3775max locked memory (kbytes, -l) 64max memory size (kbytes, -m) unlimitedopen files (-n) 1024pipe size (512 bytes, -p) 8POSIX message queues (bytes, -q) 819200real-time priority (-r) 0stack size (kbytes, -s) 8192cpu time (seconds, -t) unlimitedmax user processes (-u) 3775virtual memory (kbytes, -v) unlimitedfile locks (-x) unlimited
do the needful.
Regards,
Lofna
In reply to lofna kumari: