AndreasUbuntu escreveu:
Eu terei limitado o alexander a utilizar apenas 35% da minha CPU?
Alexander é um Processo ????
___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"
3. Re: CPU Usage Limiter, O que acontece se eu...
removidousa Nenhuma
Post recolhido
Enviado em 30/07/2016 - 21:40h
Segundo o --help
xxxxx@yyyyyyyy:~$ cpulimit --help
CPUlimit version 2.1
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
-c --cpu=N override the detection of CPUs on the machine.
-l, --limit=N percentage of cpu allowed from 1 up.
Usually 1 - 400, but can be higher
on multi-core CPUs (mandatory)
-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
----------------------------------------------------------------------------------------------------------------
Nem direita, nem esquerda. Quando se trata de corrupção o Brasil é ambidestro.
(anônimo)
Encryption works. Properly implemented strong crypto systems are one of the few things that you can rely on. Unfortunately, endpoint security is so terrifically weak that NSA can frequently find ways around it. — Edward Snowden
4. E um usuario
AndreasUbuntuusa Ubuntu
Post recolhido
Enviado em 30/07/2016 - 21:45h
e que eu conheco o comando
ps -fu alexander
exibiria todos os processos (ps) do usuario (-fu alexander). Entao resolvi misturar o codigo com o do CPU Usage Limiter
5. Re: CPU Usage Limiter, O que acontece se eu...
Mauriciodezusa Debian
Post recolhido
Enviado em 30/07/2016 - 21:57h
AndreasUbuntu escreveu:
e que eu conheco o comando
ps -fu alexander
exibiria todos os processos (ps) do usuario (-fu alexander). Entao resolvi misturar o codigo com o do CPU Usage Limiter
camarada ... seguinte ... pra começar ... cpulimit é para limitar processos ... outra porem entretanto ... "f" e "u" não fazem parte dos psrâmetros do cpulimit !!!
___________________________________________________________________________________________
" Nem sempre é amigo aquele que te tira do buraco !!! ( Saddam Hussein )"
Usamos cookies essenciais para manter o site funcionando e Google Analytics para métricas de audiência. Cookies de anúncios só serão carregados se você permitir.