1 |
On 29/11/2010, at 1:18am, Nikos Chantziaras wrote: |
2 |
> ... |
3 |
> Also try to set these in your make.conf: |
4 |
> |
5 |
> PORTAGE_NICENESS=19 |
6 |
> PORTAGE_IONICE_COMMAND="sh -c \"schedtool -D \${PID}; ionice -c 3 -p \${PID}\"" |
7 |
> |
8 |
> This will run all emerges nice 19, "idle" i/o priority and SCHED_IDLEPRIO CPU scheduling. The "ionice" and "schedtool" utilities must be installed of course. |
9 |
> |
10 |
> I think you will love the results ;-) Given enough RAM, emerging packages will have almost no effect on the system's usability. In my case, I can for example watch 1080p HD movies without problems while building OpenOffice. |
11 |
|
12 |
I don't think I've ever had much problem with emerges. |
13 |
|
14 |
These DVD rips cause *much* slower responsiveness than I've ever noticed before. |
15 |
|
16 |
The DVD drive is on the motherboard's EIDE controller, the hard-drive is part of a RAID5 on a 3ware PCI hardware SATA RAID controller. |
17 |
|
18 |
I'm aware that PCI is a relatively slow interface for modern hard-drives, but its adequate for everything else. |
19 |
|
20 |
When I have a DVD rip running it'll take 30 seconds to run `man man` or even exit bash - if I type `exit` in a tmux window then that window will stay around for 30 seconds. |
21 |
|
22 |
Mark Knecht's suggestion that this is related to RAM usage seems quite credible, as it seems to be worse when I come back to the machine (say after 15 minutes after initiating the rip) and seems to be alleviated somewhat after I've run a few commands (`ls` on my home directory or other common places). |
23 |
|
24 |
Checking now it seems pretty snappy - it's now on the `mkisofs` part of the rip, rather than the `dvdbackup` part. So it might be that the problem is only when the DVD-rom is reading at the same time as writing to the SATA controller. |
25 |
|
26 |
Note that these are only "rips", NOT transcodes of the video. I am only running `dvdbackup && mkisofs`, so there should be minimal CPU overhead (although I'll now remember to double-check that tomorrow). |
27 |
|
28 |
Stroller. |