socketutils: do not request NDIAG_SHOW_MEMINFO

This information is not used and it looks like it negatively affects
ability to find the socket under high load.

* socketutils.c (netlink_send_query) <req>: Remove NDIAG_SHOW_MEMINFO
flag from netlink_diag_req.ndiag_show field.
* tests/netlink_netlink_diag.c (send_query) <req>: Likewise.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
This commit is contained in:
Eugene Syromyatnikov 2018-05-14 19:20:21 +02:00 committed by Dmitry V. Levin
parent 346e8002b0
commit 95ce60d1da
2 changed files with 2 additions and 4 deletions

View File

@ -363,8 +363,7 @@ netlink_send_query(struct tcb *tcp, const int fd, const unsigned long inode)
},
.ndr = {
.sdiag_family = AF_NETLINK,
.sdiag_protocol = NDIAG_PROTO_ALL,
.ndiag_show = NDIAG_SHOW_MEMINFO
.sdiag_protocol = NDIAG_PROTO_ALL
}
};
return send_query(tcp, fd, &req, sizeof(req));

View File

@ -55,8 +55,7 @@ send_query(const int fd)
},
.ndr = {
.sdiag_family = AF_NETLINK,
.sdiag_protocol = NDIAG_PROTO_ALL,
.ndiag_show = NDIAG_SHOW_MEMINFO
.sdiag_protocol = NDIAG_PROTO_ALL
}
};
struct iovec iov = {