1 |
On 12/07/2020 11:54, tastytea wrote: |
2 |
> On 2020-07-12 11:29+0300 Nikos Chantziaras <realnc@×××××.com> wrote: |
3 |
> |
4 |
>> On 12/07/2020 09:04, William Kenworthy wrote: |
5 |
>>> Hi, |
6 |
>>> |
7 |
>>> is there a way to change the MAKEOPTS setting on a running |
8 |
>>> emerge? I am using "-j 5 -l 4" whilst emerging gcc-9.3 but its |
9 |
>>> creating too much pressure on memory. I expect the emerge to take |
10 |
>>> many more hours but complete eventually - but reducing it to "-j2" |
11 |
>>> will help other operations whilst not losing whats already been |
12 |
>>> completed (this is an old atom N330 with 4G ram and is my |
13 |
>>> gateway/router/firewall/snort/... and the overload is starting to |
14 |
>>> affect the network throughput significantly). |
15 |
>> |
16 |
>> […] |
17 |
>> ionice is in sys-apps/util-linux, so it's probably already installed. |
18 |
>> schedtool though is in sys-process/schedtool and it might not be |
19 |
>> installed. |
20 |
>> […] |
21 |
> |
22 |
> The nice level can also be adjusted with `renice` from |
23 |
> sys-apps/util-linux: |
24 |
> |
25 |
> renice -n 19 -p pid |
26 |
|
27 |
Yep, forgot about that. However, I have observed that the nice level |
28 |
doesn't have much impact. But setting a process to SCHED_IDLEPRIO |
29 |
(schedtool -D) and nice level 19 (schedtool -n 19) has a huge impact. |