From: Alexey Kodanev Date: Fri, 27 Nov 2020 12:15:02 +0300 Subject: [LTP] [PATCH] netstress: explicitly set a thread stack size In-Reply-To: <20201126150349.GB4646@yuki.lan> References: <20201126150349.GB4646@yuki.lan> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On 26.11.2020 18:03, Cyril Hrubis wrote: > Hi! >> I'm reluctant to use a static value here as max_msg_len may be modified >> by command line arguments. > > Wouldn't it be easier to use malloc() instead of putting large data > structures on the stack and working around that by increasing the > limits? In the current server implementation it would hurt performance, so I assume it would also require to make a memory/thread-pool...