I have a VPS on Open-VZ, and the server is supposed to have 4 cores 3.0Ghz Xeon CPU. The usage is normally close to zero. When I compress a file (using zip, tar.gz, or 7z) it take too long for such CPU power.
What is the problem? And how can I get rid of it?
EDIT:-
Folder Name: CentOS-6.2-x86_64-bin-DVD1to2
Contents:-
1) CentOS-6.2-x86_64-bin-DVD1.iso : 4.1 GB
2) CentOS-6.2-x86_64-bin-DVD2.iso : 1.2 GB
3) 6 Small files : 6.9 KB
-------------------------------------------------
Total 5.3 GB
Compression type: zip (using Ubuntu 10.04 integrated Archive Manager)
Compression time: 12 Minutes 55 Seconds
The server is said to have a Xeon CPU (4 Cores, 3.0 Ghz)
Available to me: 4 cores.
Memory available is 1GB, with "burst" (which is actually vSwap) another 1GB.
$ vmstat -s
2097152 K total memory
757260 K used memory
0 K active memory
0 K inactive memory
1339892 K free memory
0 K buffer memory
0 K swap cache
0 K total swap
0 K used swap
0 K free swap
21980 non-nice user cpu ticks
48 nice user cpu ticks
4919 system cpu ticks
850244 idle cpu ticks
44279 IO-wait cpu ticks
0 IRQ cpu ticks
0 softirq cpu ticks
0 stolen cpu ticks
66334788 pages paged in
121362728 pages paged out
0 pages swapped in
0 pages swapped out
0 interrupts
328969420 CPU context switches
1339502619 boot time
197583383 forks