gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gcmd-dev] Bug #332517 : Fam


From: Micha
Subject: Re: [gcmd-dev] Bug #332517 : Fam
Date: Fri, 26 Jan 2007 03:06:47 +0100
User-agent: Alpenglühn 7.2

I'm not sure what you mean by 'test set' but how about this:


Launch gcmd --debug=n (or better =dfgplmn) from a terminal, or catch the 
xsession stdout debug log, like (on Debian)

tail -F ~/.xsession-errors

Start 'top' on another terminal. Don't use a resource consuming graphical 
system monitor.

Create a 100 MB file,

 dd  if=/dev/zero  of=/tmp/100MB  count=200000

then copy it according to Assafs description, both gcmd panes showing
the same dir. Note the result. Then stop FAM or gamin (or deinstall) for 
a second run. (Can we stop gnome-vfs from using libfam monitors ?)

To compare the results with other machines, some basic infos could be 
helpful:

free -m
grep '\(^(--\|WW\|RAM:\)' /var/log/Xorg.0.log
dmidecode  # or cpuid
uname -a
zgrep '\(CONFIG_HZ\|PREEMPT\)' /proc/config.gz 

On old machines with less video power,  a high CPU load can be caused 
by X working on filelist widget updates, rather than by the filemanager or 
FS monitors itself. Which can probably be tested by copying on shell: 

cd /tmp
/usr/bin/time --verbose 100MB   100MBcopy  
(you can use the shell command 'time' as well but it lacks a 'verbose' mode)

Here's my old machnine: 
/tmp mi: /usr/bin/time --verbose cp -av 100MB 100MBcopy
`100MB' -> `100MBcopy'
        Command being timed: "cp -av 100MB 100MBcopy"
        User time (seconds): 0.10
        System time (seconds): 3.96
        Percent of CPU this job got: 40%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.95
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 0
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 3
        Minor (reclaiming a frame) page faults: 249
        Voluntary context switches: 270
        Involuntary context switches: 471
        Swaps: 0
        File system inputs: 0
        File system outputs: 0
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 0

The CPU percentage of gcmd is nearly the same, a running FAM is (far) below 5%.
That example was, btw, with lots of apps open and even a running update, 
so a typical desktop situation ;)

Here's the hardware specs:  (script log,  trimmed down)
########################

Script started on Fri 26 Jan 2007 02:49:39 AM CET

/tmp r: free -m

             total       used       free     shared    buffers     cached
Mem:           250        246          4          0          1        187
-/+ buffers/cache:         57        192
Swap:          595          0        595

/tmp r:     
/tmp r:     
/tmp r: grep '\(^(--\|WW\|RAM:\)' /var/log/Xorg.0.log

(--) using VT number 7
(--) PCI:*(0:10:0) Matrox Graphics, Inc. MGA 1064SG [Mystique] rev 3, Mem @ 
0xd5000000/23, 0xd6000000/14, 0xd7000000/23
(--) Assigning device section with no busID to primary device
(--) Chipset mga1064sg found
(--) MGA(0): Chipset: "mga1064sg"
(--) MGA(0): Linear framebuffer at 0xD5000000
(--) MGA(0): MMIO registers at 0xD6000000
(--) MGA(0): Pseudo-DMA transfer window at 0xD7000000
(--) MGA(0): Video BIOS info block at offset 0x07EA0
(**) MGA(0): VideoRAM: 4096 kByte
(--) MGA(0): Max pixel clock is 220 MHz
(--) MGA(0): Virtual size is 1600x1200 (pitch 1600)
(--) MGA(0): 32 DWORD fifo
(WW) MGA(0): Direct rendering disabled

/tmp r: 
/tmp r: 
/tmp r: dmidecode

# dmidecode 2.8
SMBIOS 2.2 present.
49 structures occupying 1211 bytes.
Table at 0x000F0800.

Handle 0x0000, DMI type 0, 19 bytes
BIOS Information
        Vendor: Award Software International, Inc.
        Version: 4.51 PG
        Release Date: 07/31/2000
        Address: 0xE0000
        Runtime Size: 128 kB
        ROM Size: 256 kB
        Characteristics:
                ISA is supported
                PCI is supported
                PNP is supported
                APM is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                ESCD support is available
                Boot from CD is supported
                Selectable boot is supported
                BIOS ROM is socketed
                EDD is supported
                5.25"/360 KB floppy services are supported (int 13h)
                5.25"/1.2 MB floppy services are supported (int 13h)
                3.5"/720 KB floppy services are supported (int 13h)
                3.5"/2.88 MB floppy services are supported (int 13h)
                Print screen service is supported (int 5h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                AGP is supported
                LS-120 boot is supported
                ATAPI Zip drive boot is supported

Handle 0x0004, DMI type 4, 32 bytes
Processor Information
        Socket Designation: Socket 7
        Type: Central Processor
        Family: K5
        Manufacturer: AMD
        ID: 8C 05 00 00 BF 21 80 00
        Signature: Family 5, Model 8, Stepping C
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)
                MCE (Machine check exception)
                CX8 (CMPXCHG8 instruction supported)
                PGE (Page global enable)
                MMX (MMX technology supported)
        Version: AMD-K6
        Voltage: 3.3 V
        External Clock: Unknown
        Max Speed: 350 MHz
        Current Speed: 500 MHz
        Status: Populated, Enabled
        Upgrade: ZIF Socket
        L1 Cache Handle: 0x000C
        L2 Cache Handle: 0x000D
        L3 Cache Handle: No L3 Cache

Handle 0x0005, DMI type 5, 28 bytes
Memory Controller Information
        Error Detecting Method: 8-bit Parity
        Error Correcting Capabilities:
                None
        Supported Interleave: One-way Interleave
        Current Interleave: One-way Interleave
        Maximum Memory Module Size: 512 MB
        Maximum Total Memory Size: 3072 MB
        Supported Speeds:
                70 ns
                60 ns
        Supported Memory Types:
                Standard
                FPM
                EDO
                SDRAM
        Memory Module Voltage: 5.0 V 3.3 V
        Associated Memory Slots: 6
                0x0006
                0x0007
                0x0008
                0x0009
                0x000A
                0x000B
        Enabled Error Correcting Capabilities: None

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A0
        Bank Connections: 0 1
        Current Speed: 60 ns
        Type: Parity ECC DIMM SDRAM
        Installed Size: 64 MB (Single-bank Connection)
        Enabled Size: 64 MB (Single-bank Connection)
        Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A1
        Bank Connections: 0 1
        Current Speed: 60 ns
        Type: Parity ECC DIMM SDRAM
        Installed Size: 64 MB (Single-bank Connection)
        Enabled Size: 64 MB (Single-bank Connection)
        Error Status: OK

Handle 0x0008, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A2
        Bank Connections: 2 3
        Current Speed: 60 ns
        Type: FPM Parity ECC
        Installed Size: 64 MB (Single-bank Connection)
        Enabled Size: 64 MB (Single-bank Connection)
        Error Status: OK

Handle 0x0009, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A3
        Bank Connections: 2 3
        Current Speed: 60 ns
        Type: FPM Parity ECC
        Installed Size: 64 MB (Single-bank Connection)
        Enabled Size: 64 MB (Single-bank Connection)
        Error Status: OK

Handle 0x000C, DMI type 7, 19 bytes
Cache Information
        Socket Designation: Internal Cache
        Configuration: Enabled, Not Socketed, Level 1
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 64 KB
        Maximum Size: 64 KB
        Supported SRAM Types:
                Synchronous
        Installed SRAM Type: Synchronous
        Speed: Unknown
        Error Correction Type: Unknown
        System Type: Unknown
        Associativity: Unknown

Handle 0x000D, DMI type 7, 19 bytes
Cache Information
        Socket Designation: External Cache
        Configuration: Enabled, Not Socketed, Level 2
        Operational Mode: Write Back
        Location: External
        Installed Size: 512 KB
        Maximum Size: 1024 KB
        Supported SRAM Types:
                Synchronous
        Installed SRAM Type: Synchronous
        Speed: Unknown
        Error Correction Type: Unknown
        System Type: Unknown
        Associativity: Unknown

(the rest cut off)

/tmp r: uname -a
Linux woody 2.6.18-1 #1 Tue Oct 17 15:43:05 MDT 2006 i586 GNU/Linux
/tmp r: 
/tmp r: 
/tmp r: zgrep '\(CONFIG_HZ\|PREEMPT\)' /proc/config.gz 
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
/tmp r: 
/tmp r: 
/tmp r: # 'top' output-to-file example:
/tmp r: 
/tmp r:  top -b -n1 -d1

top - 02:52:38 up  2:15,  1 user,  load average: 0.27, 0.41, 0.39
Tasks:  80 total,   1 running,  79 sleeping,   0 stopped,   0 zombie
Cpu(s): 10.5%us, 16.8%sy,  8.0%ni, 53.3%id, 11.0%wa,  0.3%hi,  0.1%si,  0.0%st
Mem:    256612k total,   247956k used,     8656k free,     1536k buffers
Swap:   609436k total,      132k used,   609304k free,   191744k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
               
 3225 root       6 -10 30604  13m 3656 S  1.9  5.2   3:41.63 Xorg               
               
 3290 michl     15   0 27720  12m 9248 S  0.0  5.0   0:47.21 sylpheed-claws     
               
 3288 michl     15   0 10796 6552 4244 S  0.0  2.6   0:23.17 WindowMaker        
               
  424 root      15   0 12596 6316 4068 S  0.0  2.5   0:12.79 multi-gnome-ter    
               
   78 root      15  -5     0    0    0 S  0.0  0.0   0:09.03 kswapd0            
               
 3292 michl     15   0  2788 1136  928 S  0.0  0.4   0:04.33 wmifs              
               
 3306 michl     18   0  7016 3640 1880 S  0.0  1.4   0:03.05 gconfd-2           
               
 3304 michl     15   0 28672 8668 6980 S  0.0  3.4   0:02.56 gnome-settings-    
               
16170 root      15   0  6312 3240 1404 S  0.0  1.3   0:01.32 bash               
               
 1231 root      15   0  6312 3208 1376 S  0.0  1.3   0:01.02 bash               
               
  725 root      16   0  6308 3204 1376 S  0.0  1.2   0:00.91 bash               
               
 3171 michl     20   0  6808 3316 1256 S  0.0  1.3   0:00.90 bash               
               
 1965 root      10  -5     0    0    0 S  0.0  0.0   0:00.71 kjournald          
               
 2614 root      15   0  2240  988  716 S  0.0  0.4   0:00.50 syslog-ng          
               
 3291 michl     15   0  2800 1156  948 S  0.0  0.5   0:00.50 asclock            
               
    1 root      15   0  1948  596  508 S  0.0  0.2   0:00.49 init               
               
 3289 michl     30  15  6580 1496 1224 S  0.0  0.6   0:00.47 wmsetbg            
               
    3 root      10  -5     0    0    0 S  0.0  0.0   0:00.42 events/0           
               
 3312 michl     15   0  7196 2884 2344 S  0.0  1.1   0:00.36 bonobo-activati    
               
 9857 root      15   0     0    0    0 S  0.0  0.0   0:00.31 pdflush            
               
    8 root      13  -5     0    0    0 S  0.0  0.0   0:00.16 kblockd/0          
               
 3230 michl     20   0  7096 1108  892 S  0.0  0.4   0:00.16 WindowMaker        
               
 3125 Debian-c  18   0  1948  788  592 S  0.0  0.3   0:00.10 less               
               
11012 root      18   0  4868 1744 1356 S  0.0  0.7   0:00.10 bash               
               
 3104 Debian-c  18   0  1948  788  592 S  0.0  0.3   0:00.08 less               
               
 9855 root      15   0     0    0    0 S  0.0  0.0   0:00.08 pdflush            
               
 2841 root      15   0  2192  888  708 S  0.0  0.3   0:00.07 cron               
               
 3095 Debian-c  18   0  1944  792  592 S  0.0  0.3   0:00.06 less               
               
 2856 root      18   0  9556 2572 1284 S  0.0  1.0   0:00.05 apache2            
               
20028 root      15   0  8056 1440 1024 S  0.0  0.6   0:00.05 nmbd               
               
11114 root      15   0  2228 1048  796 R  3.7  0.4   0:00.05 top                
               
   11 root      10  -5     0    0    0 S  0.0  0.0   0:00.04 khubd              
               
20113 root      18   0 11112 2396 1672 S  0.0  0.9   0:00.04 smbd               
               
 3153 root      16   0  2660 1140  892 S  0.0  0.4   0:00.03 login              
               
16129 root      18   0  4576 1092  888 S  0.0  0.4   0:00.03 su                 
               
    4 root      12  -5     0    0    0 S  0.0  0.0   0:00.02 khelper            
               
 2713 root      24   0  2268  840  676 S  0.0  0.3   0:00.02 xinetd             
               
 3208 michl     25   0  5036 1544 1088 S  0.0  0.6   0:00.02 startx             
               
  707 root      18   0  4576 1092  888 S  0.0  0.4   0:00.02 su                 
               
 1230 root      18   0  4576 1096  888 S  0.0  0.4   0:00.02 su                 
               
11011 root      18   0  3636  388  300 S  0.0  0.2   0:00.02 script             
               
 2635 nobody    18   0  3404  792  628 S  0.0  0.3   0:00.01 gdomap             
               
 3083 Debian-c  20   0  2012  856  712 S  0.0  0.3   0:00.01 daemon             
               
 3098 Debian-c  15   0  2008  860  712 S  0.0  0.3   0:00.01 daemon             
               
 3117 Debian-c  16   0  2012  864  712 S  0.0  0.3   0:00.01 daemon             
               
 3154 root      18   0  1576  528  460 S  0.0  0.2   0:00.01 getty              
               
11010 root      18   0  3632  576  492 S  0.0  0.2   0:00.01 script             
               
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0        
               
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread            
               
   13 root      19  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod            
               
   40 root      15   0     0    0    0 S  0.0  0.0   0:00.00 kapmd              
               
   79 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0              
               
  774 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused          
               
 2322 daemon    15   0  1688  364  272 S  0.0  0.1   0:00.00 portmap            
               
 2655 root      15   0     0    0    0 S  0.0  0.0   0:00.00 nfsd               
               
 2657 root      25   0     0    0    0 S  0.0  0.0   0:00.00 lockd              
               
 2658 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 rpciod/0           
               
 2661 root      25   0  1760  304  160 S  0.0  0.1   0:00.00 rpc.mountd         
               
 2690 root      18   0  4852 1028  712 S  0.0  0.4   0:00.00 sshd               
               
 2737 statd     22   0  1720  712  612 S  0.0  0.3   0:00.00 rpc.statd          
               
 2745 root      15   0  3512  512  272 S  0.0  0.2   0:00.00 rpc.idmapd         
               
 2763 root      18   0  1580  444  376 S  0.0  0.2   0:00.00 apmd               
               
 2790 proxy     18   0  2660  712  444 S  0.0  0.3   0:00.00 wwwoffled          
               
 2821 daemon    18   0  1828  412  300 S  0.0  0.2   0:00.00 atd                
               
 2857 www-data  18   0  9556 2060  764 S  0.0  0.8   0:00.00 apache2            
               
 2858 www-data  18   0  9556 2060  764 S  0.0  0.8   0:00.00 apache2            
               
 3047 Debian-e  16   0  5292  964  688 S  0.0  0.4   0:00.00 exim4              
               
 3155 root      18   0  1576  524  460 S  0.0  0.2   0:00.00 getty              
               
 3156 root      18   0  1576  528  460 S  0.0  0.2   0:00.00 getty              
               
 3160 root      18   0  1572  524  460 S  0.0  0.2   0:00.00 getty              
               
 3161 root      18   0  1576  528  460 S  0.0  0.2   0:00.00 getty              
               
 3224 michl     18   0  2560  692  580 S  0.0  0.3   0:00.00 xinit              
               
 3286 michl     18   0  4064  700  452 S  0.0  0.3   0:00.00 ssh-agent          
               
 3287 michl     18   0  4060  688  444 S  0.0  0.3   0:00.00 ssh-agent          
               
 3299 michl     21   0  5032  792  336 S  0.0  0.3   0:00.00 autostart          
               
  704 root      18   0  1788  624  512 S  0.0  0.2   0:00.00 mgt-pty-helper     
               
 1942 root      15  -4  2712 1100  312 S  0.0  0.4   0:00.00 udevd              
               
 2131 root      18   0  1748  564  476 S  0.0  0.2   0:00.00 inetd              
               
18023 root      15   0  1628  360  296 S  0.0  0.1   0:00.00 gpm                
               
20134 root      18   0 11112 1036  312 S  0.0  0.4   0:00.00 smbd               
               

/tmp r: exit

Script done on Fri 26 Jan 2007 02:53:19 AM CET







Attachment: pswatch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]