From 2aac89e89cb33bd319eb9cea10fe4d3c385534a4 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Aug 2016 11:47:36 +0200 Subject: [PATCH] Don t display advice for tcp slot if /proc/sys/sunrpc file doesn t exist #30 --- mysqltuner.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index f10a0a7..4953472 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1256,7 +1256,7 @@ sub get_kernel_info() { } my $tcp_slot_entries=`sysctl -n sunrpc.tcp_slot_table_entries 2>/dev/null`; - if ( $tcp_slot_entries eq '' or $tcp_slot_entries < 100 ) { + if ( -f "/proc/sys/sunrpc" and $tcp_slot_entries eq '' or $tcp_slot_entries < 100 ) { badprint "Initial TCP slot entries is < 1M, please consider having a value greater than 100"; push @generalrec, "setup Initial TCP slot entries greater than 100";