View previous topic :: View next topic |
Author |
Message |
ramar n00b
Joined: 10 Oct 2004 Posts: 31
|
Posted: Mon Oct 11, 2004 3:01 pm Post subject: Monitorare occupazione cpu, ram, etc etc. |
|
|
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 |
|
|
[hammerfall] Apprentice
Joined: 27 May 2004 Posts: 243
|
Posted: Mon Oct 11, 2004 3:02 pm Post subject: |
|
|
_________________ --------
Hammerfall ^_^ |
|
Back to top |
|
|
ramar n00b
Joined: 10 Oct 2004 Posts: 31
|
Posted: Mon Oct 11, 2004 3:56 pm Post subject: |
|
|
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 |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Mon Oct 11, 2004 5:36 pm Post subject: |
|
|
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 |
|
|
_sys/sid Guru
Joined: 27 Aug 2004 Posts: 346 Location: Asola (Mantova)
|
Posted: Mon Oct 11, 2004 5:43 pm Post subject: |
|
|
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 |
|
|
ramar n00b
Joined: 10 Oct 2004 Posts: 31
|
Posted: Mon Oct 11, 2004 6:30 pm Post subject: |
|
|
Ed invece, andando un po' OT, esiste qualche programmino sempre per la shell che visualizzi la temperatura del processore? |
|
Back to top |
|
|
rust5 Tux's lil' helper
Joined: 03 Jun 2004 Posts: 80 Location: Melee Island
|
Posted: Mon Oct 11, 2004 6:35 pm Post subject: |
|
|
ramar wrote: | Ed invece, andando un po' OT, esiste qualche programmino sempre per la shell che visualizzi la temperatura del processore? |
io uso acpi
_________________ into the void we have to travel |
|
Back to top |
|
|
matteo* Tux's lil' helper
Joined: 17 Nov 2003 Posts: 128 Location: bologna, italy
|
Posted: Mon Oct 11, 2004 6:56 pm Post subject: |
|
|
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 |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Mon Oct 11, 2004 7:26 pm Post subject: |
|
|
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 _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
ramar n00b
Joined: 10 Oct 2004 Posts: 31
|
Posted: Tue Oct 12, 2004 11:27 am Post subject: |
|
|
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 |
|
|
Cazzantonio Bodhisattva
Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Tue Oct 12, 2004 11:45 am Post subject: |
|
|
top dovrebbe dirti tutti i processi gestiti dal kernel...
comunque se vuoi semplicemente un elenco dei processi attivi prova a dare
fai riferimento a 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 |
|
|
|
|
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
|
|