Δίνοντας options στην εντολή time

George Notaras gnot at g-loaded.eu
Fri May 30 16:58:34 EEST 2008


Christos Ricudis wrote:
> George Notaras wrote:
>> George Notaras wrote:
>>
>>>   /usr/bin/time -f "MaxResident : %M\nNrSwappedOut: %W" -- \
>>>       tar -czvf test.tar.gz VBox-Src/
>>>
>>
>> Ή μαλλον ένα άλλο παράδειγμα πιο χαρακτηριστικό:
>>
>>   /usr/bin/time -f "MaxResident : %M\nNrSwappedOut: %W" -- \
>>       beagled --fg --debug-memory
>>
>>
>> Μετά από λίγο από άλλο terminal:
>>
>>   beagle-shutdown
>>
>>
>> Στο 1ο terminal δείχνει:
>>
>>   MaxResident : 0
>>   NrSwappedOut: 0
>>
>>
>> -- 
>> linux-greek-users mailing list -- http://lists.hellug.gr
> 
> E koita, ama 8es ena PRAGMATIKO paradeigma oti de leitourgei, pare ayto 
> edw :
> 
> /usr/bin/time -f "MaxResident : %M\nNrSwappedOut: %W" -- 
> firefox                
> ...
> 
> MaxResident : 0
> NrSwappedOut: 0
> 
> Apla, opws leei kai to manual page ths time(1) :
> 
>       Most information shown by time is derived from the wait3(2) 
> system  call.
>       The  numbers  are only as good as those returned by wait3(2).  On 
> systems
>       that do not have a wait3(2) call that  returns  status  
> information,  the
>       times(2) system call is used instead.  However, it provides much 
> less in-
>       formation than wait3(2), so on those systems time reports the 
> majority of
>       the resources as zero.
> 

Και πώς μπορεί να ξέρει κανείς αν το σύστημα έχει την wait3 call ή αν 
αυτή χρησιμοποιείται ή όχι? Έψαξα λίγο στο google, αλλά δεν έβγαλα άκρη...

Σε γενικές γραμμές, υπάρχει κάποιος γρήγορος & εύκολος τρόπος να βρίσκει 
κανείς συγκεκριμένα στοιχεία για την κατανάλωση μνήμης από κάποιο process?

Επίσης, το πεδίο RSS στο output του ps, είναι η μέγιστη τιμή της φυσικής 
μνήμης που έχει χρησιμοποιηθεί από το κάθε process από την έναρξή του 
μέχρι τη στιγμή της εκτέλεσης του ps? Μήπως τελικά αυτό αρκεί?

Sorry προκαταβολικά για το πρήξιμο.




More information about the Linux-greek-users mailing list