0

I am using a RaspberryPi 3B as a server to run a Telegram bot (using node) and I began to notice that after some time the bot takes ages to reply; so I downloaded speedtest-cli and setup a python script to run a test and log the results in a file. Then I have setup a cron job to run this script every 10 minutes.. Here are the results:

Date,Time,Ping (ms),Download (Mbit/s),Upload (Mbit/s)
08/27/19,00:50,10.295,16.33,16.26
08/27/19,00:51,10.509,17.36,18.47
08/27/19,01:00,12.293,15.51,13.71
08/27/19,01:10,9.976,18.97,18.18
08/27/19,01:20,11.002,18.82,11.93
08/27/19,01:30,11.286,19.50,10.92
08/27/19,01:40,11.555,19.85,11.65
08/27/19,01:50,12.058,19.31,8.34
08/27/19,02:00,13.101,17.45,19.03
08/27/19,02:10,12.135,17.41,12.26
08/27/19,02:20,10.607,4.98,18.31
08/27/19,02:30,13.814,20.40,19.31
08/27/19,02:40,11.58,19.38,20.50
08/27/19,02:50,12.431,8.90,11.85
08/27/19,03:00,14.116,15.80,19.43
08/27/19,03:10,11.934,17.21,20.98
08/27/19,03:22,12.28,15.63,19.55
08/27/19,03:30,12.449,18.51,19.53
08/27/19,03:40,11.259,20.80,18.64
08/27/19,03:50,10.524,13.33,10.31
08/27/19,04:00,15.604,5.74,17.95
08/27/19,04:10,13.142,19.57,11.73
08/27/19,04:20,10.419,18.99,11.77
08/27/19,04:30,13.469,5.75,19.89
08/27/19,04:40,10.244,17.56,17.89
08/27/19,04:50,12.131,5.81,18.02
08/27/19,05:00,13.886,18.44,18.73
08/27/19,05:10,11.914,16.96,12.56
08/27/19,05:20,10.367,17.69,13.46
08/27/19,05:30,11.801,16.75,21.51
08/27/19,05:40,12.856,17.59,19.58
08/27/19,05:50,11.129,15.19,21.10
08/27/19,06:00,13.227,18.84,20.41
08/27/19,06:12,2513.327,8.65,2.72 <-- PING UP
08/27/19,06:22,2516.516,8.65,2.67
08/27/19,06:32,2513.311,8.39,2.66
08/27/19,06:42,2513.135,8.09,2.66
08/27/19,06:52,2513.955,8.09,2.23
08/27/19,07:02,2512.141,8.08,2.51
08/27/19,07:12,2513.976,8.47,2.73
08/27/19,07:22,2512.5,8.22,2.68
08/27/19,07:32,2513.37,8.09,2.70
08/27/19,07:42,2513.618,7.57,2.69
08/27/19,07:52,2513.524,8.22,2.66
08/27/19,08:02,2514.533,7.99,2.66
08/27/19,08:12,2513.105,8.21,2.73
08/27/19,08:22,2513.115,8.43,2.74
08/27/19,08:32,2511.769,8.04,2.61
08/27/19,08:42,2512.459,6.85,2.52
08/27/19,08:52,2513.514,8.36,2.61
08/27/19,09:02,2513.373,8.23,2.66
08/27/19,09:12,2512.605,8.20,2.68
08/27/19,09:22,2513.563,8.10,2.68
08/27/19,09:32,2512.303,8.20,2.68
08/27/19,09:42,2511.923,8.11,2.58
08/27/19,09:52,2513.269,8.20,2.70
08/27/19,10:02,2517.414,7.96,2.62
08/27/19,10:12,2512.93,8.37,2.69
08/27/19,10:22,2513.394,8.03,2.64
08/27/19,10:32,2514.038,7.80,2.23
08/27/19,10:42,2514.179,7.60,2.71
08/27/19,10:52,2512.67,6.99,2.30
08/27/19,11:02,2514.194,7.58,2.62
08/27/19,11:12,2513.878,7.89,2.66
08/27/19,11:22,2512.915,8.37,2.70
08/27/19,11:32,2513.358,8.08,2.69
08/27/19,11:42,2512.421,8.45,2.69
08/27/19,11:52,2514.148,8.19,2.66
08/27/19,12:02,2515.412,8.28,2.68
08/27/19,12:12,2512.547,7.94,2.63
08/27/19,12:22,2512.879,8.63,2.67
08/27/19,12:32,2512.469,8.61,2.63
08/27/19,12:42,2513.223,8.55,2.65
08/27/19,12:52,2513.155,7.98,2.60
08/27/19,13:00,14.069,19.08,19.4 <-- MANUAL REBOOT
08/27/19,13:10,13.352,5.74,19.31
08/27/19,13:20,11.626,4.10,10.33
08/27/19,13:30,13.26,19.10,18.49
08/27/19,13:40,12.901,17.47,17.99
08/27/19,13:50,9.908,15.69,19.75
08/27/19,14:00,14.497,20.02,12.59
08/27/19,14:10,12.538,18.46,18.20
08/27/19,14:20,14.791,20.88,7.01
08/27/19,14:30,11.653,21.97,18.67
08/27/19,14:40,12.776,16.71,16.94
08/27/19,14:50,10.229,18.39,17.49
08/27/19,15:00,24.198,8.86,18.61
08/27/19,15:10,11.843,18.47,12.10
08/27/19,15:20,11.003,18.89,21.72
08/27/19,15:30,11.007,16.65,7.99
08/27/19,15:40,9.547,15.72,19.89
08/27/19,15:50,10.266,17.25,19.79
08/27/19,16:00,11.288,4.99,19.51
08/27/19,16:10,10.75,16.37,19.04
08/27/19,16:20,11.006,17.77,21.07
08/27/19,16:30,13.35,17.83,21.89
08/27/19,16:40,11.847,20.31,11.83
08/27/19,16:51,11.308,19.61,17.89
08/27/19,17:01,10.116,16.68,8.88
08/27/19,17:10,11.414,18.10,18.31
08/27/19,17:20,13.885,19.67,19.36
08/27/19,17:31,31.774,23.66,18.88
08/27/19,17:40,25.054,16.50,18.93
08/27/19,17:50,10.792,17.13,18.72
08/27/19,18:00,11.512,18.19,21.36
08/27/19,18:10,9.612,19.47,20.21
08/27/19,18:20,12.066,15.52,13.12
08/27/19,18:30,12.313,17.81,20.56
08/27/19,18:40,20.477,18.94,17.21
08/27/19,18:50,9.737,18.77,20.05
08/27/19,19:00,9.249,3.37,1.64
08/27/19,19:10,10.437,3.32,20.25
08/27/19,19:20,13.87,16.85,21.12
08/27/19,19:30,14.34,17.14,20.25
08/27/19,19:40,10.162,19.63,18.58
08/27/19,19:50,9.516,7.33,19.09
08/27/19,20:00,11.703,9.19,12.27
08/27/19,20:10,13.213,19.34,20.17
08/27/19,20:20,21.108,15.10,20.63
08/27/19,20:30,10.111,5.73,22.02
08/27/19,20:40,10.378,17.83,21.51
08/27/19,20:50,9.499,17.58,19.31
08/27/19,21:00,12.261,18.82,17.55
08/27/19,21:10,12.413,19.05,13.19
08/27/19,21:20,14.984,20.20,12.74
08/27/19,21:30,22.006,17.22,11.63
08/27/19,21:40,15.626,19.48,19.40
08/27/19,21:50,11.22,3.25,4.24
08/27/19,22:00,15.958,17.11,18.02
08/27/19,22:10,14.056,16.82,20.57
08/27/19,22:20,9.991,10.44,20.77
08/27/19,22:30,13.733,18.58,19.66
08/27/19,22:40,9.221,14.26,18.50
08/27/19,22:50,9.495,20.47,18.44
08/27/19,23:01,13.713,17.38,12.08
08/27/19,23:10,10.82,16.81,20.94
08/27/19,23:20,13.519,17.72,13.17
08/27/19,23:30,11.098,20.96,18.75
08/27/19,23:40,9.734,18.37,12.37
08/27/19,23:50,11.449,17.14,18.23
08/28/19,00:01,14.584,15.48,16.76
08/28/19,00:10,12.317,20.68,21.43
08/28/19,00:20,10.992,18.83,18.81
08/28/19,00:30,10.296,20.73,11.97
08/28/19,00:40,11.542,16.86,19.14
08/28/19,00:50,10.619,20.07,20.66
08/28/19,01:00,11.061,17.96,16.65
08/28/19,01:10,12.832,18.37,19.51
08/28/19,01:20,12.138,8.93,19.54
08/28/19,01:30,11.241,19.51,17.40
08/28/19,01:40,11.706,21.56,14.38
08/28/19,01:50,11.304,20.11,19.73
08/28/19,02:00,11.618,6.29,19.46
08/28/19,02:10,11.005,18.62,20.76
08/28/19,02:20,10.746,20.93,20.90
08/28/19,02:30,9.482,17.64,19.63
08/28/19,02:40,9.15,19.05,13.12
08/28/19,02:50,11.026,20.39,17.95
08/28/19,03:00,15.313,19.53,19.83
08/28/19,03:10,10.115,14.95,21.38
08/28/19,03:20,10.388,21.16,18.54
08/28/19,03:30,12.618,19.57,19.96
08/28/19,03:40,10.091,16.60,4.06
08/28/19,03:50,11.961,21.36,19.44
08/28/19,04:00,13.227,23.31,14.93
08/28/19,04:10,12.467,19.00,21.29
08/28/19,04:20,11.215,16.81,12.95
08/28/19,04:30,11.29,10.54,7.40
08/28/19,04:40,11.661,19.49,19.55
08/28/19,04:50,9.917,20.34,20.78
08/28/19,05:01,14.481,17.87,22.30
08/28/19,05:10,11.331,11.17,19.69
08/28/19,05:20,12.355,10.41,20.48
08/28/19,05:30,10.84,20.08,17.74
08/28/19,05:40,13.821,20.27,18.78
08/28/19,05:50,11.514,21.89,14.24
08/28/19,06:00,9.717,14.63,19.52
08/28/19,06:10,12.916,13.89,1.94
08/28/19,06:20,10.361,18.82,20.54
08/28/19,06:32,2512.168,1.93,0.79 <-- PING UP
08/28/19,06:42,2513.806,8.61,2.73
08/28/19,06:52,2513.099,8.51,2.72
08/28/19,07:02,2514.232,8.57,2.73
08/28/19,07:12,2513.145,8.34,2.64
08/28/19,07:22,2513.858,8.57,2.75
08/28/19,07:32,2513.024,8.22,2.66
08/28/19,07:42,2511.811,8.49,2.70
08/28/19,07:52,2511.53,8.51,2.24
08/28/19,08:02,2513.384,8.20,2.70
08/28/19,08:12,2512.238,8.59,2.70
08/28/19,08:22,2510.812,8.59,2.71
08/28/19,08:32,2512.789,8.54,2.72
08/28/19,08:42,2512.73,8.11,2.67
08/28/19,08:52,2512.834,8.42,2.69
08/28/19,09:02,2514.305,8.04,2.67
08/28/19,09:12,2512.932,8.30,2.69
08/28/19,09:22,2512.558,8.41,2.72
08/28/19,09:32,2512.232,8.42,2.73
08/28/19,09:42,2513.445,8.63,2.74
08/28/19,09:52,2512.449,8.49,2.68
08/28/19,10:02,2513.948,8.23,2.71
08/28/19,10:12,2514.041,8.61,2.71
08/28/19,10:22,2512.775,7.37,2.64
08/28/19,10:32,2512.555,8.33,2.70
08/28/19,10:42,2512.411,8.31,2.72
08/28/19,10:52,2512.905,6.64,2.74
08/28/19,11:02,2512.546,8.37,2.65
08/28/19,11:12,2514.641,8.62,2.65
08/28/19,11:22,2512.901,8.60,2.68
08/28/19,11:32,2513.826,8.09,2.68
08/28/19,11:42,2512.869,8.41,2.67
08/28/19,11:52,2512.629,8.53,2.70
08/28/19,12:02,2513.585,8.39,2.67
08/28/19,12:20,9.331,16.67,18.25 <-- MANUAL REBOOT
08/28/19,12:30,10.942,3.73,16.28

The strange thing is that at some point during the morning it suddenly becomes very slow (pinging above 2500ms), but then, when I reboot the raspberry, it becomes as fast as before (pinging around 10ms). Is there anything plausible that might be causing this? Is there anything I can run to locate where the problem might be (I tried to log the output of top every 10 minutes, but I cannot find anything strange in it)?

  • 1
    It's always at the same hour? Do you have any task in cron? How's the traffic at that hour? What about your network, it's just the bot or you network in general? – Alessandro Rodriguez Aug 28 at 12:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.