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.macie...@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@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to