[Qgis-user] excessive threads?
chris hermansen
clhermansen at gmail.com
Sat Jul 30 12:36:44 PDT 2022
Greg and list
On Sat, Jul 30, 2022 at 10:38 AM Greg Troxel via Qgis-user <
qgis-user at lists.osgeo.org> wrote:
>
> (I realize excessive is relative. Back when I was young, we didn't have
> any threads at all....)
>
> My desktop is NetBSD 9, I ran out of threads, and found that qgis 3.22.8
> was using 157 threads, much more than I expected.
>
[stuff deleted]
>
> I really don't understand:
>
> What is qgis using threads for?
>
> Do others see large (100 or so, vs 10) thread counts?
>
> Why are there 157 (really, why are there more than about 10-20)?
>
> Seems kind of surprising to me as well. I get that some applications
could benefit by parallel execution, and of course separating rendering
from file or other I/O seems reasonable, but 157 is a lot of threads for
just reading data and visualizing it.
As far as I know, PostgreSQL doesn't even use threads. See for example
this discussion
https://dba.stackexchange.com/questions/251935/number-of-worker-threads-available-in-postgresql
About SQLite I have no idea.
Does it seem like you have one thread per layer for reading plus one for
rendering plus one for user input?
--
Chris Hermansen · clhermansen "at" gmail "dot" com
C'est ma façon de parler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220730/52056b94/attachment.htm>
More information about the Qgis-user
mailing list