Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2628 connectés 

 


Dernière réponse
Sujet : Question fondamental sur top/free et la mémoire
Kahyman Ah oui et pour ton %...
 

Code :
  1. k: %CPU  --  CPU usage
  2.           The task's share of the elapsed  CPU  time  since  the  last  screen
  3.           update,  expressed as a percentage of total CPU time.  In a true SMP
  4.           environment, if 'Irix mode' is Off, top  will  operate  in  'Solaris
  5.           mode'  where  a task's cpu usage will be divided by the total number
  6.           of CPUs.  You toggle 'Irix/Solaris' modes with the  'I'  interactive
  7.           command.
  8.        n: %MEM  --  Memory usage (RES)
  9.           A task's currently used share of available physical memory.


 
Mais tu as *vraiment* lu ? Serieux ?


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Kahyman Ah oui et pour ton %...
 

Code :
  1. k: %CPU  --  CPU usage
  2.           The task's share of the elapsed  CPU  time  since  the  last  screen
  3.           update,  expressed as a percentage of total CPU time.  In a true SMP
  4.           environment, if 'Irix mode' is Off, top  will  operate  in  'Solaris
  5.           mode'  where  a task's cpu usage will be divided by the total number
  6.           of CPUs.  You toggle 'Irix/Solaris' modes with the  'I'  interactive
  7.           command.
  8.        n: %MEM  --  Memory usage (RES)
  9.           A task's currently used share of available physical memory.


 
Mais tu as *vraiment* lu ? Serieux ?

Kahyman Bref je repete encore une fois :
 
M A N
Kahyman Tu es sur d'avoir lu le man de top ? :heink:
 

Code :
  1. 2a. DESCRIPTIONS of Fields
  2.        Listed below are top's available fields.  They  are  always  associated
  3.        with  the  letter shown, regardless of the position you may have estab-
  4.        lished for them with the 'o' (Order fields) interactive command.
  5.        Any field is selectable as the sort field, and you control whether they
  6.        are  sorted  high-to-low or low-to-high.  For additional information on
  7.        sort provisions see topic 3c. TASK Area Commands.
  8. ...
  9.        o: VIRT  --  Virtual Image (kb)
  10.           The  total  amount  of virtual memory used by the task.  It includes
  11.           all code, data and  shared  libraries  plus  pages  that  have  been
  12.           swapped out.
  13.           VIRT = SWAP + RES.
  14.        p: SWAP  --  Swapped size (kb)
  15.           The swapped out portion of a task's total virtual memory image.
  16.        q: RES  --  Resident size (kb)
  17.           The non-swapped physical memory a task has used.
  18.           RES = CODE + DATA.
  19.        r: CODE  --  Code size (kb)
  20.           The amount of physical memory devoted to executable code, also known
  21.           as the 'text resident set' size or TRS.
  22.        s: DATA  --  Data+Stack size (kb)
  23.           The amount of physical memory devoted to other than executable code,
  24.           also known as the 'data resident set' size or DRS.
  25.        t: SHR  --  Shared Mem size (kb)
  26.           The amount of shared memory used by a task.  It simply reflects mem-
  27.           ory that could be potentially shared with other processes.

krumli Merci mais j'ai deja lu les man et peanut comme info (  à part dans man proc mais ça reste superficiel )
Kahyman et dire que j'ai failli repondre "man"... j'ai failli passer pour un salo
Taz ce qui t'intéresse dans top, c'est la colonne RES qui elle a du sens (les autres aussi, mais ça peut être difficile à interpréter selon le contexte ou le noyau=
 
pour free
- shared tu t'en fou, ça sera toujours 0
- buffers et cached -> mémoire utilisée par le noyau comme tampon pour les E/S et le système de fichier (le noyau gère tout ça, si tu as besoin de mémoire, il tapera dans le cached)
 
 
rien d'inquiétant en somme
krumli Sous top, l'utilisation mémoire est fournit par 4 chiffre par défaut mais je comprend pas trop à quoi ils correspondent.
 
Un exemple avec firefox (en Mo):
 
VIRT= 101m
RES= 41m
SHR= 31m
%= 11%
 
Avec free, c'est un peu le même problème, qu'est que cached, shared et buffers ??? (en Mo)
 
                     total       used       free     shared    buffers     cached
Mem:           376        364         12          0         14        226

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)