On Thu 29-06-17 09:14:55, Alkis Georgopoulos wrote: > I've been working on a system with highmem_is_dirtyable=1 for a couple > of hours. > > While the disk benchmark showed no performance hit on intense disk > activity, there are other serious problems that make this workaround > unusable. > > I.e. when there's intense disk activity, the mouse cursor moves with > extreme lag, like 1-2 fps. Switching with alt+tab from e.g. thunderbird > to pidgin needs 10 seconds. kswapd hits 100% cpu usage. Etc etc, the > system becomes unusable until the disk activity settles down. > I was testing via SSH so I hadn't noticed the extreme lag. > > All those symptoms go away when resetting highmem_is_dirtyable=0. > > So currently 32bit installations with 16 GB RAM have no option but to > remove the extra RAM... Or simply install 64b kernel. You can keep 32b userspace if you need it but running 32b kernel will be always a fight. > About ab8fabd46f81 ("mm: exclude reserved pages from dirtyable memory"), > would it make sense for me to compile a kernel and test if everything > works fine without it? I.e. if we see that this caused all those > regressions, would it be revisited? The patch makes a lot of sense in general. I do not think we will revert it based on a configuration which is rare. We might come up with some tweaks in the dirty memory throttling but that area is quite tricky already. You can of course try to test without this commit applied (I believe you would have to go and checkout ab8fabd46f81 and revert the commit because a later revert sound more complicated to me. I might be wrong here because I haven't tried that myself though). > And an unrelated idea, is there any way to tell linux to use a limited > amount of RAM for page cache, e.g. only 1 GB? No. -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>