Tool/software: Linux
Hello,
We are using a EVMK2H REV4.0 board with SDK ti-processor-sdk-linux-k2hk-evm-03.02.00.05-Linux-x86.
We submitted an earlier question regarding a limit we ran against in creating threads within a single root process, where we were
limited to creating 509 threads. It turns out the issue is not related to virtual memory.
We traced that the problem is related to the fact that we are running our thread creation program under a root ssh shell.
It turns out that we are being limited by a pids cgroup limit associated with dropbear.
We found that if we set the dropbear entry that is created under /sys/fs/cgroup/pids/system.slice/system-dropbear.slice to "max" we are then able to create thousands of threads.
Example: In this example the pid of our ssh session was 46408. If we execute the following command:
echo "max" > /sys/fs/cgroup/pids/system.slice/system-dropbear.slice/dropbear@0-10.10.10.24:22-10.10.10.2:46408.service/pids.max
we are then able to create the number of threads we need.
Before we make the change the pids.max limit for this entry is 512.
So far we have been unable to find out how to change this default value.
How can this default value of 512 be changed?
If necessary I can post this to the Linux group as well but it seems closely related to the k2hk-evm SDK.
All help is appreciated.
Thank you,
Bob