From 24f1c722d3fabe584234390fdd8fb3cfcac75851 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Aug 2016 11:48:41 +0200 Subject: [PATCH] Don t display advice for tcp slot if /proc/sys/sunrpc file doesn t exist #230 --- mysqltuner.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/mysqltuner.pl b/mysqltuner.pl index 4953472..1a6ca81 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1255,6 +1255,7 @@ sub get_kernel_info() { infoprint "Swappiness is < 10."; } + # only if /proc/sys/sunrpc exists my $tcp_slot_entries=`sysctl -n sunrpc.tcp_slot_table_entries 2>/dev/null`; if ( -f "/proc/sys/sunrpc" and $tcp_slot_entries eq '' or $tcp_slot_entries < 100 ) { badprint