!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

505 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant132 Servers

Load older messages


SenderMessageTime
11 Feb 2025
@motiejus:jakstys.ltmotiejusFiled https://github.com/NixOS/nixpkgs/issues/381280 for visibility21:13:08
@motiejus:jakstys.ltmotiejus* Filed https://github.com/NixOS/nixpkgs/issues/38128021:13:18
@hexa:lossy.network@hexa:lossy.networkyeah, well21:19:52
@hexa:lossy.network@hexa:lossy.networkI'm here21:19:53
@hexa:lossy.network@hexa:lossy.networkI'm not quite sure where to start debugging this further21:20:08
@hexa:lossy.network@hexa:lossy.networkmultiprocessing is a python standard library module21:20:55
@hexa:lossy.network@hexa:lossy.networkour python is not compiled with pgo21:21:04
@k900:0upti.meK900I would start by attaching a profiler21:21:28
@hexa:lossy.network@hexa:lossy.networkbut the problem could also be gomp21:21:33
@k900:0upti.meK900Like py-spy21:21:43
@k900:0upti.meK900And then maybe perf if it's not in Python code21:21:50
@hexa:lossy.network@hexa:lossy.networkthere was a perf already21:21:59
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/blakeblackshear/frigate/discussions/16450#discussioncomment-1214305921:22:13
@k900:0upti.meK900I'm pretty sure all the interesting bits are too small to see on this graph21:23:35
@hexa:lossy.network@hexa:lossy.networkyeah, agreed21:23:42
@k900:0upti.meK900 Because gompbarrierwait_end just waits on a bunch of threads 21:24:19
@k900:0upti.meK900https://github.com/gcc-mirror/gcc/blob/master/libgomp/config/posix/bar.c#L73-L10521:24:20
@hexa:lossy.network@hexa:lossy.network motiejus: so can you zoom into what happens before that ends? 21:25:39
@k900:0upti.meK900Also, which threads was that even recorded form21:25:56
@k900:0upti.meK900* Also, which threads was that even recorded from21:25:58
@k900:0upti.meK900I wonder if we're just not seeing any of the worker threads21:26:04
@hexa:lossy.network@hexa:lossy.networkI'm about to set up frigate on an n100 machine with a coral m.2 card21:27:05
@hexa:lossy.network@hexa:lossy.networkso I can probably try and reproduce this in a few days21:27:13
12 Feb 2025
@motiejus:jakstys.ltmotiejusUploaded full svg: https://github.com/NixOS/nixpkgs/issues/381280#issuecomment-2652896354 Good point re worker threads, I'll see if there are any, and profile those.07:45:51
@motiejus:jakstys.ltmotiejus Unrelated: can I start lobbying a CFLAG -fno-omit-frame-pointer, at least on x86_64-linux? So I don't need to do such partial hacks. Some background reading by Brendan Gregg. 07:48:14
@motiejus:jakstys.ltmotiejus

Relevant quote:

Fedora and Ubuntu have now returned frame pointers, which is great news. People should start running these releases in 2024 and will find that CPU flame graphs make more sense, Off-CPU flame graphs work for the first time, and other new things become possible. It's also a win for continuous profilers, as they don't need to convince their customers to make OS changes to get profiles to fully work.

As you can see, this debugging session would benefit from those greatly. :)

07:49:27
@motiejus:jakstys.ltmotiejus *

Relevant quote:

Fedora and Ubuntu have now returned frame pointers, which is great news. People should start running these releases in 2024 and will find that CPU flame graphs make more sense, Off-CPU flame graphs work for the first time, and other new things become possible. It's also a win for continuous profilers, as they don't need to convince their customers to make OS changes to get profiles to fully work.

As you can see, this debugging session would benefit from those greatly.

08:02:37
@motiejus:jakstys.ltmotiejus Uploaded a bunch of flame graphs, probably including worker nodes (if I got the perf command right). 08:26:07
@motiejus:jakstys.ltmotiejus * Uploaded a bunch of flame graphs, probably including worker threads (if I got the perf command right). 08:26:25
@k900:0upti.meK900
In reply to@motiejus:jakstys.lt
Unrelated: can I start lobbying a CFLAG -fno-omit-frame-pointer, at least on x86_64-linux? So I don't need to do such partial hacks. Some background reading by Brendan Gregg.
We tend to use debuginfo for this instead
08:57:01

Show newer messages


Back to Room ListRoom Version: 6