-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net.Connections("all")
causes high CPU usage on server with 120K connections
#784
Comments
I believe that telegraf only does I was expecting some slow parsing of |
This will be fixed in #695. |
@Lomanic this is not related to using netlink or not. In fact Lines 409 to 430 in 6a8ab03
If |
#771 is talking about getting rid of |
OK, thanks, sorry for misunderstanding, I'm not very familiar with this part of the code. |
Since the |
@danielnelson I agree that the PID can not be traced just with |
This skips the uid lookup since we don't use it. See upstream PRs for some more background: shirou/gopsutil#784 shirou/gopsutil#783 This requires upgrading gopsutil which changed some structs which in turn requires upgrading telegraf. Apparently the `Stolen` field was never set (shirou/gopsutil#677) Even with this change there are still some performance issues in the host observer on machines with a large number of connections. Something like this change would be required to deal with the remaining issues: shirou/gopsutil#695
This skips the uid lookup since we don't use it. See upstream PRs for some more background: shirou/gopsutil#784 shirou/gopsutil#783 This requires upgrading gopsutil which changed some structs which in turn requires upgrading telegraf. Apparently the `Stolen` field was never set (shirou/gopsutil#677) Even with this change there are still some performance issues in the host observer on machines with a large number of connections. Something like this change would be required to deal with the remaining issues: shirou/gopsutil#695
This skips the uid lookup since we don't use it. See upstream PRs for some more background: shirou/gopsutil#784 shirou/gopsutil#783 This requires upgrading gopsutil which changed some structs which in turn requires upgrading telegraf. Apparently the `Stolen` field was never set (shirou/gopsutil#677) Even with this change there are still some performance issues in the host observer on machines with a large number of connections. Something like this change would be required to deal with the remaining issues: shirou/gopsutil#695
This skips the uid lookup since we don't use it. See upstream PRs for some more background: shirou/gopsutil#784 shirou/gopsutil#783 This requires upgrading gopsutil which changed some structs which in turn requires upgrading telegraf. Apparently the `Stolen` field was never set (shirou/gopsutil#677) Even with this change there are still some performance issues in the host observer on machines with a large number of connections. Something like this change would be required to deal with the remaining issues: shirou/gopsutil#695
This skips the uid lookup since we don't use it. See upstream PRs for some more background: shirou/gopsutil#784 shirou/gopsutil#783 This requires upgrading gopsutil which changed some structs which in turn requires upgrading telegraf. Apparently the `Stolen` field was never set (shirou/gopsutil#677) Even with this change there are still some performance issues in the host observer on machines with a large number of connections. Something like this change would be required to deal with the remaining issues: shirou/gopsutil#695
To retrieve network information use NETLINK_SOCK_DIAG instead of walking /proc/<PID> and parsing files. Consequently this reduces the number of syscalls, as walking /proc/<PID> and opening, reading and closing files is no longer required. But it also reduces the memory footprint as reading files into memory for processing is no longer required. Related issues: - shirou#695 - shirou#784 Supersedes shirou#809 Signed-off-by: Florian Lehner <dev@der-flo.net>
To retrieve network information use NETLINK_SOCK_DIAG instead of walking /proc/<PID> and parsing files. Consequently this reduces the number of syscalls, as walking /proc/<PID> and opening, reading and closing files is no longer required. But it also reduces the memory footprint as reading files into memory for processing is no longer required. Related issues: - shirou#695 - shirou#784 Supersedes shirou#809 Signed-off-by: Florian Lehner <dev@der-flo.net>
In #1660 a proper netlink based implementation for |
telegraf-1.12.3 with data collection interval 10s, sending data to influxDB
OS: Linux x86_64
Opening this issue since gopsutil was found to be the culprit for influxdata/telegraf#6559
The text was updated successfully, but these errors were encountered: