Ebpf latency description (#11363)
thiagoftsm committed
Jul 28, 2021 at 16:24 UTC
77c9279e986fb908364ae0cf589ca62675703dc9
2 files changed
+46
-21
collectors/ebpf.plugin/ebpf_filesystem.c
+1
-1
@@ -128,7 +128,7 @@ static void ebpf_create_fs_charts()
128
uint32_t flags = efp->flags;
129
if (flags & NETDATA_FILESYSTEM_FLAG_HAS_PARTITION && !(flags & test)) {
130
snprintfz(title, 255, "%s latency for each read request.", efp->filesystem);
131
- snprintfz(family, 63, "%s latency (eBPF)", efp->family);
131
+ snprintfz(family, 63, "%s_latency", efp->family);
132
snprintfz(chart_name, 63, "%s_read_latency", efp->filesystem);
133
efp->hread.name = strdupz(chart_name);
134
efp->hread.title = strdupz(title);
web/gui/dashboard_info.js
+45
-20
@@ -794,6 +794,31 @@ netdataDashboard.submenu = {
794
'ntpd.peers': {
795
title: 'peers',
796
info: 'Statistics of the peer variables for each peer configured in <code>/etc/ntp.conf</code> as shown by the readvar billboard <code>ntpq -c "rv <association>"</code>, while each peer is assigned a nonzero association ID as shown by <code>ntpq -c "apeers"</code>. The module periodically scans for new/changed peers (default: every 60s). <b>ntpd</b> selects the best possible peer from the available peers to synchronize the clock. A minimum of at least 3 peers is required to properly identify the best possible peer.'
797
+ },
798
+
799
+ 'filesystem.EXT4_latency': {
800
+ title: 'EXT4 Latency',
801
+ info: 'Latency is the time it takes for an event to be completed. We calculate the difference between the calling and return times, this spans disk I/O, file system operations (lock, I/O), run queue latency and all events related to the monitored action. Based on the eBPF <a href="http://www.brendangregg.com/blog/2016-10-06/linux-bcc-ext4dist-ext4slower.html" target="_blank">ext4dist</a> from BCC tools.'
802
+ },
803
+
804
+ 'filesystem.XFS_latency': {
805
+ title: 'XFS Latency',
806
+ info: 'Latency is the time it takes for an event to be completed. We calculate the difference between the calling and return times, this spans disk I/O, file system operations (lock, I/O), run queue latency and all events related to the monitored action. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/xfsdist_example.txt" target="_blank">xfsdist</a> from BCC tools.'
807
+ },
808
+
809
+ 'filesystem.NFS_latency': {
810
+ title: 'NFS Latency',
811
+ info: 'Latency is the time it takes for an event to be completed. We calculate the difference between the calling and return times, this spans disk I/O, file system operations (lock, I/O), run queue latency and all events related to the monitored action. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/nfsdist_example.txt" target="_blank">nfsdist</a> from BCC tools.'
812
+ },
813
+
814
+ 'filesystem.ZFS_latency': {
815
+ title: 'ZFS Latency',
816
+ info: 'Latency is the time it takes for an event to be completed. We calculate the difference between the calling and return times, this spans disk I/O, file system operations (lock, I/O), run queue latency and all events related to the monitored action. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/zfsdist_example.txt" target="_blank">zfsdist</a> from BCC tools.'
817
+ },
818
+
819
+ 'filesystem.BTRFS_latency': {
820
+ title: 'BTRFS Latency',
821
+ info: 'Latency is the time it takes for an event to be completed. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/btrfsdist_example.txt" target="_blank">btrfsdist</a> from BCC tools.'
822
}
823
};
824
@@ -3484,83 +3509,83 @@ netdataDashboard.context = {
3509
},
3510
3511
'filesystem.ext4_read_latency': {
3487
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>ext4_file_read_iter</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="http://www.brendangregg.com/blog/2016-10-06/linux-bcc-ext4dist-ext4slower.html" target="_blank">ext4dist</a> from BCC tools.'
3512
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>ext4_file_read_iter</code>.'
3513
},
3514
3515
'filesystem.ext4_write_latency': {
3491
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>ext4_file_write_iter</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="http://www.brendangregg.com/blog/2016-10-06/linux-bcc-ext4dist-ext4slower.html" target="_blank">ext4dist</a> from BCC tools.'
3516
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>ext4_file_write_iter</code>.'
3517
},
3518
3519
'filesystem.ext4_open_latency': {
3495
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>ext4_file_open</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="http://www.brendangregg.com/blog/2016-10-06/linux-bcc-ext4dist-ext4slower.html" target="_blank">ext4dist</a> from BCC tools.'
3520
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>ext4_file_open</code>.'
3521
},
3522
3523
'filesystem.ext4_sync_latency': {
3499
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>ext4_sync_file</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="http://www.brendangregg.com/blog/2016-10-06/linux-bcc-ext4dist-ext4slower.html" target="_blank">ext4dist</a> from BCC tools.'
3524
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>ext4_sync_file</code>.'
3525
},
3526
3527
'filesystem.xfs_read_latency': {
3503
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>xfs_file_read_iter</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/xfsdist_example.txt" target="_blank">xfsdist</a> from BCC tools.'
3528
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>xfs_file_read_iter</code>.'
3529
},
3530
3531
'filesystem.xfs_write_latency': {
3507
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>xfs_file_write_iter</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/xfsdist_example.txt" target="_blank">xfsdist</a> from BCC tools.'
3532
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>xfs_file_write_iter</code>.'
3533
},
3534
3535
'filesystem.xfs_open_latency': {
3511
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>xfs_file_open</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/xfsdist_example.txt" target="_blank">xfsdist</a> from BCC tools.'
3536
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>xfs_file_open</code>.'
3537
},
3538
3539
'filesystem.xfs_sync_latency': {
3515
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>xfs_file_sync</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/xfsdist_example.txt" target="_blank">xfsdist</a> from BCC tools.'
3540
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>xfs_file_sync</code>.'
3541
},
3542
3543
'filesystem.nfs_read_latency': {
3519
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>nfs_file_read</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/nfsdist_example.txt" target="_blank">nfsdist</a> from BCC tools.'
3544
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>nfs_file_read</code>.'
3545
},
3546
3547
'filesystem.nfs_write_latency': {
3523
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>nfs_file_write</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/nfsdist_example.txt" target="_blank">nfsdist</a> from BCC tools.'
3548
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>nfs_file_write</code>.'
3549
},
3550
3551
'filesystem.nfs_open_latency': {
3527
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when functions <code>nfs_file_open</code> and <code>nfs4_file_open</code> are called and another for when they finish the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/nfsdist_example.txt" target="_blank">nfsdist</a> from BCC tools.'
3552
+ info: 'Netdata is attaching <code>kprobes</code> for functions <code>nfs_file_open</code> and <code>nfs4_file_open</code>'
3553
},
3554
3555
'filesystem.nfs_attribute_latency': {
3531
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>nfs_getattr</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/nfsdist_example.txt" target="_blank">nfsdist</a> from BCC tools.'
3556
+ info: 'Netdata is attaching <code>kprobes</code> for the function <code>nfs_getattr</code>.'
3557
},
3558
3559
'filesystem.zfs_read_latency': {
3535
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>zpl_iter_read</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/zfsdist_example.txt" target="_blank">zfsdist</a> from BCC tools.'
3560
+ info: 'Netdata is attaching <code>kprobes</code> for when the function <code>zpl_iter_read</code>.'
3561
},
3562
3563
'filesystem.zfs_write_latency': {
3539
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>zpl_iter_write</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/zfsdist_example.txt" target="_blank">zfsdist</a> from BCC tools.'
3564
+ info: 'Netdata is attaching <code>kprobes</code> for when the function <code>zpl_iter_write</code>.'
3565
},
3566
3567
'filesystem.zfs_open_latency': {
3543
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>zpl_open</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/zfsdist_example.txt" target="_blank">zfsdist</a> from BCC tools.'
3568
+ info: 'Netdata is attaching <code>kprobes</code> for when the function <code>zpl_open</code>.'
3569
},
3570
3571
'filesystem.zfs_sync_latency': {
3547
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>zpl_fsync</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/zfsdist_example.txt" target="_blank">zfsdist</a> from BCC tools.'
3572
+ info: 'Netdata is attaching <code>kprobes</code> for when the function <code>zpl_fsync</code>.'
3573
},
3574
3575
'filesystem.btrfs_read_latency': {
3551
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>btrfs_file_read_iter</code> (kernel newer than 5.9.16) or the function <code>generic_file_read_iter</code> (old kernels) is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/btrfsdist_example.txt" target="_blank">btrfsdist</a> from BCC tools.'
3576
+ info: 'Netdata is attaching <code>kprobes</code> for when the function <code>btrfs_file_read_iter</code> (kernel newer than 5.9.16) or the function <code>generic_file_read_iter</code> (old kernels).'
3577
},
3578
3579
'filesystem.btrfs_write_latency': {
3555
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>btrfs_file_write_iter</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/btrfsdist_example.txt" target="_blank">btrfsdist</a> from BCC tools.'
3580
+ info: 'Netdata is attaching <code>kprobes</code> for when the function <code>btrfs_file_write_iter</code>.'
3581
},
3582
3583
'filesystem.btrfs_open_latency': {
3559
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>btrfs_file_open</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/btrfsdist_example.txt" target="_blank">btrfsdist</a> from BCC tools.'
3584
+ info: 'Netdata is attaching <code>kprobes</code> for when the function <code>btrfs_file_open</code>.'
3585
},
3586
3587
'filesystem.btrfs_sync_latency': {
3563
- info: 'Latency is the time it takes for an event to be completed. Netdata is attaching a kprobe for when the function <code>btrfs_sync_file</code> is called and another for when it finishes the execution. We calculate the difference between the calling and return times, we get the logarithmic for the final result and we sum one value to the respective bin. Based on the eBPF <a href="https://github.com/iovisor/bcc/blob/master/tools/btrfsdist_example.txt" target="_blank">btrfsdist</a> from BCC tools.'
3588
+ info: 'Netdata is attaching <code>kprobes</code> for when the function <code>btrfs_sync_file</code>.'
3589
},
3590
3591
// ------------------------------------------------------------------------