Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Priorita' nell'esecuzione [FAQ][Risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Mon Jan 05, 2004 12:38 am    Post subject: Priorita' nell'esecuzione [FAQ][Risolto] Reply with quote

Hola!
Immagino che questa sia una domanda un po da nubbio, ma io chiedo lo stesso :)

C'e' un modo per eseguire un programma con un priorita' maggiore?

Ad esempio, quando uso Blender, che mi importa solo di quello e della musica accesa, perche' devo lasciare tutti quei cicli della CPU inutilizzata? Preferirei il pc tutto indaffarato x quei 2 programmi.

Mi e' venuto in mente quando mi accorsi che per portage c'e' la possibilita' di farlo (settando in make.conf PORTAGE_NICENESS=-20)

Ciauz
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
matteo*
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2003
Posts: 128
Location: bologna, italy

PostPosted: Mon Jan 05, 2004 12:47 am    Post subject: Reply with quote

con nice:
Code:
nice -n (numero) nome programma


con valore negativo (fino a -20 se non ricordo male) il processo ha priorità + elevata, con valore positivi il processo ha priorità minore
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Mon Jan 05, 2004 12:50 am    Post subject: Reply with quote

Si, ho visto il man

grazie mille :)
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
Sparker
l33t
l33t


Joined: 28 Aug 2003
Posts: 992

PostPosted: Mon Jan 05, 2004 7:43 am    Post subject: Reply with quote

Beh, ma se la cpu è inutilizzata e a Blender servono cicli, se li prende da solo.

(comunque il comando è renice o nice, ma lo può fare solo root)
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Jan 05, 2004 7:55 am    Post subject: Reply with quote

[quote="matteo*"]con nice:
Code:
nice -n (numero) nome programma


se invece il programma é già avviato :
Code:
# renice (numero) PID del programma.


Coda
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Mon Jan 05, 2004 11:43 am    Post subject: Reply with quote

Eh infatti notavo che non si possono settare valori negativi... mi sembra abbastanza logico

mamma mia che sicurezza linux! Un utente non puo' nemmeno tentare di rallentare il sistema! :)

grazie per renice

ciauz!
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum