[LTP] [PATCH] netstress: explicitly set a thread stack size

Cyril Hrubis chrubis@suse.cz
Fri Nov 27 12:28:10 CET 2020


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...

Okay, then increasing limits sound like a reasonable workaround for the
time being.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list