Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Monitorare occupazione cpu, ram, etc etc.
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
ramar
n00b
n00b


Joined: 10 Oct 2004
Posts: 31

PostPosted: Mon Oct 11, 2004 3:01 pm    Post subject: Monitorare occupazione cpu, ram, etc etc. Reply with quote

Esiste un programmino per la nostra gentoo che mostri l'occupazione del processore, della ram e quali programmi succhiano la ram e cose di questo tipo?
Ah, l'importante è che non sia nativo per XWindows ma sia gestibile da shell.
Back to top
View user's profile Send private message
[hammerfall]
Apprentice
Apprentice


Joined: 27 May 2004
Posts: 243

PostPosted: Mon Oct 11, 2004 3:02 pm    Post subject: Reply with quote

Code:
#top

_________________
--------

Hammerfall ^_^
Back to top
View user's profile Send private message
ramar
n00b
n00b


Joined: 10 Oct 2004
Posts: 31

PostPosted: Mon Oct 11, 2004 3:56 pm    Post subject: Reply with quote

E posso creare un file di log se per esempio il server supera un'occupazione di processore dell'80% (numero a caso)?
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Oct 11, 2004 5:36 pm    Post subject: Reply with quote

ramar wrote:
E posso creare un file di log se per esempio il server supera un'occupazione di processore dell'80% (numero a caso)?


Dalla man page di top:

Code:

        -b : Batch mode operation
            Starts top in 'Batch mode', which could be useful for sending out-
            put from top to other programs or to a file.  In  this  mode,  top
            will  not  accept input and runs until the iterations limit you've
            set with the '-n' command-line option or until killed.


Un esempio:

Code:
gutter@morpheus ~ $ top -b | grep -i cpu\(s\)
Cpu(s): 32.3% us,  5.9% sy,  0.8% ni, 43.9% id, 16.9% wa,  0.2% hi,  0.0% si
Cpu(s):  1.7% us,  0.3% sy,  0.0% ni, 98.0% id,  0.0% wa,  0.0% hi,  0.0% si
Cpu(s):  1.3% us,  0.3% sy,  0.0% ni, 97.7% id,  0.7% wa,  0.0% hi,  0.0% si
Cpu(s):  3.3% us,  0.3% sy,  0.0% ni, 95.3% id,  1.0% wa,  0.0% hi,  0.0% si
Cpu(s):  1.3% us,  0.3% sy,  0.0% ni, 98.3% id,  0.0% wa,  0.0% hi,  0.0% si


Se giochi un poco con grep riesci ad ottenere facilmente ciò che vuoi.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
_sys/sid
Guru
Guru


Joined: 27 Aug 2004
Posts: 346
Location: Asola (Mantova)

PostPosted: Mon Oct 11, 2004 5:43 pm    Post subject: Reply with quote

top per la shell..
per X
Code:

*  gnome-extra/gdesklets-core [ Masked ]
      Latest version available: 0.26.2
      Latest version installed: 0.26.2
      Size of downloaded files: [no/bad digest]
      Homepage:    http://www.pycage.de/software_gdesklets.html
      Description: GNOME Desktop Applets: core library for the desktop applets


Code:

[MI] gdesklets-core (0.26.2):  GNOME Desktop Applets: core library for the desktop applets
[MN] desklet-temperature (0.2):  A temperature desklet that displays the temperature as it changes over 24 hours
[MN] desklet-rssgrab (0.6.2):  A news/rss grabbing display for gDesklets
[MI] desklet-psisensors (20040420):  Psi's collection of popular gDesklet Sensors including CPU, Disk, Memory, Network and other Sensors
[MN] desklet-cornerxmms (0.0.5-r1):  A corner display that interacts with XMMS
[MN] desklet-goodweather (0.4):  A desklet producing weather forecasts for the coming week
[MN] desklet-calendar (0.2.5.2):  The calendar sensor and display for gDesklets
[MN] desklet-sysinfo (0.25):  A system information providing Display/Sensor for gDesklets
[MN] desklet-ltvariations (0.26):  The clock sensors and displays for gdesklets
[MN] desklet-battery (0.2):  A battery monitoring sensor and display for gDesklets
[MN] desklet-wireless (0.2):  The wireless monitoring sensor and display for gDesklets
[MN] desklet-rhythmlet (0.3g):  A display for controlling the Rhythmbox music player from gDesklets
[MI] desklet-psidisplays (20040420):  A CPU Monitor Sensor for gdesklets
[MN] desklet-psiextras (0.1):  The Psi-themed GoodWeather, battery, launcher, pager, weather and wireless displays for gDesklets
[MN] desklet-multitail (0.3.1):  A desklet that allows the 'tail' or viewing of multiple files on your desktop
[MI] desklet-weather (0.25):  A weather monitoring Sensor and Display for gdesklets
[MI] desklet-clock (0.32-r1):  The clock sensors and displays for gdesklets
[MN] desklet-starterbar (0.30):  An OSX like gnome panel for launchers

_________________
http://th30z.netsons.org/
Back to top
View user's profile Send private message
ramar
n00b
n00b


Joined: 10 Oct 2004
Posts: 31

PostPosted: Mon Oct 11, 2004 6:30 pm    Post subject: Reply with quote

Ed invece, andando un po' OT, esiste qualche programmino sempre per la shell che visualizzi la temperatura del processore?
Back to top
View user's profile Send private message
rust5
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2004
Posts: 80
Location: Melee Island

PostPosted: Mon Oct 11, 2004 6:35 pm    Post subject: Reply with quote

ramar wrote:
Ed invece, andando un po' OT, esiste qualche programmino sempre per la shell che visualizzi la temperatura del processore?


io uso acpi

Code:
acpi -t

_________________
into the void we have to travel
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 Oct 11, 2004 6:56 pm    Post subject: Reply with quote

ramar wrote:
Ed invece, andando un po' OT, esiste qualche programmino sempre per la shell che visualizzi la temperatura del processore?

per visualizzarla devi avere l'acpi abilitato nel kernel dopodichè puoi emergare *acpi* che con *acpi -t* ti dà la temperatura (non fa altro che un
Code:
 cat /proc/acpi/thermal_zone/THRM/temperature
)
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Oct 11, 2004 7:26 pm    Post subject: Reply with quote

ramar wrote:
Ed invece, andando un po' OT, esiste qualche programmino sempre per la shell che visualizzi la temperatura del processore?


Ci sono molti post in proposito sul forum in italiano fai una ricerca :wink:
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
ramar
n00b
n00b


Joined: 10 Oct 2004
Posts: 31

PostPosted: Tue Oct 12, 2004 11:27 am    Post subject: Reply with quote

Ritornando in topic, se ho una applicazione che parte da
/etc/init.d/servizio start
con il comando top non distinguo i servizi ma, mi pare, visualizzo solo init.
Come faccio a vedere l'occupazione di apache, mysql, e servizi che partono al boot?
Back to top
View user's profile Send private message
Cazzantonio
Bodhisattva
Bodhisattva


Joined: 20 Mar 2004
Posts: 4514
Location: Somewere around the world

PostPosted: Tue Oct 12, 2004 11:45 am    Post subject: Reply with quote

top dovrebbe dirti tutti i processi gestiti dal kernel...
comunque se vuoi semplicemente un elenco dei processi attivi prova a dare
Code:
ps aux

fai riferimento a
Code:
man ps
per ulteriori e/o diverse opzioni di ps
_________________
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
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