[Interest] Default stack size of QThread

Ramakanth Kesireddy rama.kesi at gmail.com
Tue Aug 29 08:34:26 CEST 2023


Thanks for your feedback.
As we donot set any stack size for QThread and it looks like it runs out of
default stack size limit during long running operation. Hence would like to
measure the cumulative stack variables used in a thread so as to set stack
size of QThread accordingly.



On Mon, 28 Aug, 2023, 22:37 Thiago Macieira, <thiago.macieira at intel.com>
wrote:

> On Monday, 28 August 2023 05:08:25 PDT Ramakanth Kesireddy wrote:
> > Hi,
> >
> > We are using Qt 5.15.x through yocto Dunfell on embedded Linux.
> >
> > Any thoughts on default stack thread size of QThread would be great if it
> > would be 1-2MB.
>
> Why do you want that? This either indicates you don't understand how
> memory
> management works on Linux or you have a different problem that needs
> fixing.
>
> If you really want this, then QThread doesn't enforce any limit. Please
> consult the documentation for the pthread_create() function on how how it
> determines the default stack size. For glibc, it uses the RLIMIT_STACK
> resource limit.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Cloud Software Architect - Intel DCAI Cloud Engineering
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230829/3d312ce2/attachment.htm>


More information about the Interest mailing list