Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use maximum compression and multithreading #7

Open
cyril-bouthors opened this issue May 27, 2013 · 0 comments
Open

Unable to use maximum compression and multithreading #7

cyril-bouthors opened this issue May 27, 2013 · 0 comments

Comments

@cyril-bouthors
Copy link

pxz only uses one core when using maximum compression, it takes 42 seconds and only 100% CPU (1 core):

11:57 root@squeeze:/tmp# time ./pxz/pxz -T 4 -9 > mantis.sql.pxz < mantis.sql

real    0m42.240s
user    0m41.940s
sys     0m0.652s
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
16308 root      20   0 1514912 261212    700 R 100.2 2.139   0:03.61 pxz

The same thing uses 400% CPU and only takes 15 seconds when using the default compression level :

11:58 root@squeeze:/tmp# time ./pxz/pxz -T 4 > mantis.sql.pxz < mantis.sql

real    0m15.513s
user    0m51.088s
sys     0m0.724s
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
16339 root      20   0  649556 447300    704 R 393.2 3.662   0:15.40 pxz

Would it be possible to use multi threading with maximum compression?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant