The issue might be I/O (especially if bottleneck is HDD seek time);
ionice
(in addition to nice
) might help with that.