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:
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 ?
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).
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.
In reply to lofna kumari:
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.