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:
parent
346e8002b0
commit
95ce60d1da
@ -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));
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user