0
According to xz documentation the "-T 4" means I should be using 4 threads, each compressing a different part of the file simultaneously.
Before using nice -19 I would only get %50 usage of 1 core, Now how do I use the other 3 cores?(these aren't virtual cores either, they're real)
nice -19 xz -v9ekC sha256 -T 4 /path/to/file.tar
Which version of
xz
are you using? – jjlin – 2013-09-28T22:20:01.6771How fast is your IO? If you can not read fast enough from disk (or disk cache) then throwing more cores at it will not help. Are you testing with a huge file ? – Hennes – 2013-09-28T22:21:39.747
@jjlin 5.1.0alpha – GlassGhost – 2013-09-30T20:41:18.910
@Hennes
xz
compression is very much CPU-bound, unless you have a pretty unusual hardware configuration. – jjlin – 2013-09-30T21:16:45.440