Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
Bonjour,
Je viens de me rendre compte que l'exécution de la commande SHRED pour détruire un fichier faisait rapidement monter l'activité du processeur en flèche
Ce ne serait rien si, à cause de ça et pendant cette action, je ne peux plus rien faire d'autre... est-ce normal ou est-ce mon petit I3 qui devient faiblard Et peut-on éviter cette surchauffe
En effet, s'il y a beaucoup de fichiers à liquider, ce serait dommage de devoir prendre un café pendant ce temps parce qu'on ne sait plus travailler
Merci et joyeux Réveillon
Je viens de me rendre compte que l'exécution de la commande SHRED pour détruire un fichier faisait rapidement monter l'activité du processeur en flèche
Ce ne serait rien si, à cause de ça et pendant cette action, je ne peux plus rien faire d'autre... est-ce normal ou est-ce mon petit I3 qui devient faiblard Et peut-on éviter cette surchauffe
En effet, s'il y a beaucoup de fichiers à liquider, ce serait dommage de devoir prendre un café pendant ce temps parce qu'on ne sait plus travailler
Merci et joyeux Réveillon
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022
Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox
Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox
- cyrille
- Administrateur du site
- Messages : 12431
- Enregistré le : mar. 19 sept. 2017 08:49
- Localisation : Nowhere
- Contact :
Re: Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
hi
chez moi , pas de soucis
tu peux jeter un oeil du coté de
A installer, pas présent par défaut
Syntaxe
Avec -l le pourcentage attribué au processus
Je pense que l'option -c peut être intéressante aussi , spcéifie le nb de cpu en cas de multi core
chez moi , pas de soucis
tu peux jeter un oeil du coté de
Code : Tout sélectionner
cpulimit
Syntaxe
Code : Tout sélectionner
cpulimit -l 30 <ta commande habituelle>
Je pense que l'option -c peut être intéressante aussi , spcéifie le nb de cpu en cas de multi core
Code : Tout sélectionner
man cpulimit
- philosophedesetoiles
- Messages : 267
- Enregistré le : jeu. 31 août 2017 12:26
Re: Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
slt,
Tu peux baisser le nombre de passes ou bien tester d'autres outils :
https://www.youtube.com/watch?v=bBKZ8Rjy5TA
Tu peux baisser le nombre de passes ou bien tester d'autres outils :
https://www.youtube.com/watch?v=bBKZ8Rjy5TA
"De chacun selon ses forces, à chacun selon ses besoins."
Thinkpad L570
8Go Ram 500Go HDD
MXlinux 21.3 “Wildflower”
XFCE4
--
Thinkpad t520
4Go Ram 250Go HDD
Mint 20-3 Mate
Thinkpad L570
8Go Ram 500Go HDD
MXlinux 21.3 “Wildflower”
XFCE4
--
Thinkpad t520
4Go Ram 250Go HDD
Mint 20-3 Mate
Re: Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
Merci aux 2 précédents intervenants
Mais il semble que cpulimit ne fonctionne pas avec shred :
Mais il semble que cpulimit ne fonctionne pas avec shred :
Code : Tout sélectionner
linuxing@linuxing-Satellite-Pro-S300:~$ cpulimit -l shred -n 35 -z -u '/home/linuxing/VISA-USB/Capture du 2020-12-15 19-35-52.png'
CPUlimit version 2.4
Usage: cpulimit TARGET [OPTIONS...] [-- PROGRAM]
TARGET must be exactly one of these:
-p, --pid=N pid of the process
-e, --exe=FILE name of the executable program file
The -e option only works when
cpulimit is run with admin rights.
-P, --path=PATH absolute path name of the
executable program file
OPTIONS
-b --background run in background
-f --foreground launch target process in foreground and wait for it to exit
-c --cpu=N override the detection of CPUs on the machine.
-l, --limit=N percentage of cpu allowed from 1 up.
Usually 1 - 200, but can be higher
on multi-core CPUs (mandatory)
-m, --monitor-forks Watch children/forks of the target process
-q, --quiet run in quiet mode (only print errors).
-k, --kill kill processes going over their limit
instead of just throttling them.
-r, --restore Restore processes after they have
been killed. Works with the -k flag.
-s, --signal=SIG Send this signal to the watched process when cpulimit exits.
Signal should be specificed as a number or
SIGTERM, SIGCONT, SIGSTOP, etc. SIGCONT is the default.
-v, --verbose show control statistics
-z, --lazy exit if there is no suitable target process,
or if it dies
-- This is the final CPUlimit option. All following
options are for another program we will launch.
-h, --help display this help and exit
linuxing@linuxing-Satellite-Pro-S300:~$
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022
Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox
Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox
- cyrille
- Administrateur du site
- Messages : 12431
- Enregistré le : mar. 19 sept. 2017 08:49
- Localisation : Nowhere
- Contact :
Re: Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
si, pourquoi.Mais il semble que cpulimit ne fonctionne pas avec shred :
Déjà tu n'as pas donné de valeur à -l
Finalement ça donne ça
Code : Tout sélectionner
⌚23:14:51 ▶ ragnarok@valhalla ▷ ~/Téléchargements
$ nice -n 20 cpulimit --limit 75 --cpu 4 -z -- shred -n 30 -z -u debian-10.7.0-amd64-netinst.iso-bak
⌚23:15:15 ▶ ragnarok@valhalla ▷ ~/Téléchargements
Process 465071 detected
⌚23:16:44 ▶ ragnarok@valhalla ▷ ~/Téléchargements
$ Process 465071 dead!
Re: Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
Avec la valeur donnée à «l» je ne suis toujours pas plus loin :
Code : Tout sélectionner
linuxing@linuxing-Satellite-Pro-S300:~$ cpulimit -l 30 shred -n 35 -z -u '/home/linuxing/Téléchargements/eBox/BOSA_eBox_PHV_NL_FR_DE_20190522.pdf' '/home/linuxing/Téléchargements/eBox/eBOX-DS-2020-06-03.pdf'
CPUlimit version 2.4
Usage: cpulimit TARGET [OPTIONS...] [-- PROGRAM]
TARGET must be exactly one of these:
-p, --pid=N pid of the process
-e, --exe=FILE name of the executable program file
The -e option only works when
cpulimit is run with admin rights.
-P, --path=PATH absolute path name of the
executable program file
OPTIONS
-b --background run in background
-f --foreground launch target process in foreground and wait for it to exit
-c --cpu=N override the detection of CPUs on the machine.
-l, --limit=N percentage of cpu allowed from 1 up.
Usually 1 - 200, but can be higher
on multi-core CPUs (mandatory)
-m, --monitor-forks Watch children/forks of the target process
-q, --quiet run in quiet mode (only print errors).
-k, --kill kill processes going over their limit
instead of just throttling them.
-r, --restore Restore processes after they have
been killed. Works with the -k flag.
-s, --signal=SIG Send this signal to the watched process when cpulimit exits.
Signal should be specificed as a number or
SIGTERM, SIGCONT, SIGSTOP, etc. SIGCONT is the default.
-v, --verbose show control statistics
-z, --lazy exit if there is no suitable target process,
or if it dies
-- This is the final CPUlimit option. All following
options are for another program we will launch.
-h, --help display this help and exit
linuxing@linuxing-Satellite-Pro-S300:~$
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022
Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox
Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox
- cyrille
- Administrateur du site
- Messages : 12431
- Enregistré le : mar. 19 sept. 2017 08:49
- Localisation : Nowhere
- Contact :
Re: Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
Faut passer par nice au préalable, je t'ai filé un exemple
Code : Tout sélectionner
nice -n 20 cpulimit --limit 75 --cpu 4 -z -- shred <tes options>
Re: Utilisation de la commande SHRED fait monter l'activité du processeur en flèche
En attendant d'examiner de plus près ton dernier message, voici le résultat de la commande :
Je ne sais pas si j'ai bien fait ou pas, mais quand j'ai vu «dead», j'ai arrêté l'exécution
Code : Tout sélectionner
linuxing@linuxing-Satellite-Pro-S300:~$ nice -n 20 cpulimit --limit 75 --cpu 4 -z -- shred -n 35 -z -u '/home/linuxing/Vidéo Zazou/Passage-de-cerfs-dans-la-sarthe11.mp4'
linuxing@linuxing-Satellite-Pro-S300:~$ Process 13970 detected
Process 13970 dead!
^C
linuxing@linuxing-Satellite-Pro-S300:~$
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022
Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox
Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox