meu Raspbverry Pi está continuamente em interface com o cartão SD

meu Raspbverry Pi está continuamente em interface com o cartão SD

Meu Raspberry Pi tem um cartão SD de 128 GB com Arch ARM e

  • Apache
  • Próxima Nuvem

instalado nele e aparentemente interage ininterruptamente com o cartão SD. Descobri iotopque esse mysqldé aparentemente o processo que grava a maioria dos dados no disco. No shell do mysql encontrei o seguinte:

show processlist;
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------+----------+
| Id   | User         | Host      | db        | Command | Time | State                    | Info             | Progress |
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------+----------+
|    1 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge coordinator | NULL             |    0.000 |
|    2 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|    3 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|    4 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|    5 | system user  |           | NULL      | Daemon  | NULL | InnoDB shutdown handler  | NULL             |    0.000 |
| 1846 | root         | localhost | NULL      | Query   |    0 | Init                     | show processlist |    0.000 |
| 1852 | oc_stdcerr13 | localhost | nextcloud | Sleep   |    0 |                          | NULL             |    0.000 |
| 1853 | oc_stdcerr13 | localhost | nextcloud | Sleep   |    0 |                          | NULL             |    0.000 |
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------+----------+
8 rows in set (0.001 sec)

Como posso dar uma folga ao meu cartão SD? /var/loge /tmpjá estão no ramdisk ( tmpfs)

Então, quando executei continuamente o show processlistcomando, também vi o seguinte:

show processlist;
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+
| Id   | User         | Host      | db        | Command | Time | State                    | Info                                                                                                 | Progress |
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+
|    1 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge coordinator | NULL                                                                                                 |    0.000 |
|    2 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL                                                                                                 |    0.000 |
|    3 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL                                                                                                 |    0.000 |
|    4 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL                                                                                                 |    0.000 |
|    5 | system user  |           | NULL      | Daemon  | NULL | InnoDB shutdown handler  | NULL                                                                                                 |    0.000 |
| 2061 | oc_stdcerr13 | localhost | nextcloud | Query   |    0 | Init                     | SELECT `filecache`.`fileid`, `storage`, `path`, `path_hash`, `filecache`.`parent`, `name`, `mimetype |    0.000 |
| 2062 | root         | localhost | NULL      | Query   |    0 | Init                     | show processlist                                                                                     |    0.000 |
| 2063 | oc_stdcerr13 | localhost | nextcloud | Sleep   |    0 |                          | NULL                                                                                                 |    0.000 |
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+
8 rows in set (0.001 sec)

MariaDB [(none)]> show processlist;
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+
| Id   | User         | Host      | db        | Command | Time | State                    | Info                                                                                                 | Progress |
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+
|    1 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge coordinator | NULL                                                                                                 |    0.000 |
|    2 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL                                                                                                 |    0.000 |
|    3 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL                                                                                                 |    0.000 |
|    4 | system user  |           | NULL      | Daemon  | NULL | InnoDB purge worker      | NULL                                                                                                 |    0.000 |
|    5 | system user  |           | NULL      | Daemon  | NULL | InnoDB shutdown handler  | NULL                                                                                                 |    0.000 |
| 2061 | oc_stdcerr13 | localhost | nextcloud | Query   |    0 | Init                     | UPDATE `oc_filecache` SET `size` = '-1' WHERE (`fileid` = 15955) AND ((`size` <> '-1') OR (`size` IS |    0.000 |
| 2062 | root         | localhost | NULL      | Query   |    0 | Init                     | show processlist                                                                                     |    0.000 |
| 2063 | oc_stdcerr13 | localhost | nextcloud | Sleep   |    0 |                          | NULL                                                                                                 |    0.000 |
+------+--------------+-----------+-----------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+
8 rows in set (0.001 sec)

informação relacionada