linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Freezing between .48 and .51 when hitting swap.
@ 2020-10-30  4:17 NASA Jeff
  2020-11-09 16:57 ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: NASA Jeff @ 2020-10-30  4:17 UTC (permalink / raw)
  To: linux-kernel

I have an issue on my laptop which is old but with 2.5gb of ram an ssd hdd and using zram compression I believe.
When ever it hits swap the system completely locks up and I have to reboot.
This only started occurring in .51
I only have access to my phone at the moment though I’ve looked at the code and have what I believe is a workable solution that should mitigate against and future issues. The code base looked a little old so was probably quite stable but it really could do with some modernisation.
The issue was with the active app in user space.
What needs to be done is to swap out inactive pages in background user apps prior to the active apps hitting the memory threshold which was causing the lockup to occure.

An improvement on the existing code would be to swap in and out inactive pages gradually so as to avoid any heavy system load.

It may also be an idea to set the up priority to near idel for such heavy io background processes so that the overlapping io doesn’t cause issues with user space io.

I believe this is similar to the main Linux scheduler since bfs because implementing a script to renice processes that started hitting higish cpu and then again when their cpu dipped didn’t seem to make much difference. It was unclear if this was also implemented for cocurent io as the window managers now seem to queue io tasks instead of executing them concurrently. Concurrent io was at least a historic issue.

Kind regards,
Oliverthered 

Sent from my iPhone

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Freezing between .48 and .51 when hitting swap.
  2020-10-30  4:17 Freezing between .48 and .51 when hitting swap NASA Jeff
@ 2020-11-09 16:57 ` Pavel Machek
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2020-11-09 16:57 UTC (permalink / raw)
  To: NASA Jeff; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 427 bytes --]

On Fri 2020-10-30 04:17:07, NASA Jeff wrote:
> I have an issue on my laptop which is old but with 2.5gb of ram an ssd hdd and using zram compression I believe.
> When ever it hits swap the system completely locks up and I have to reboot.
> This only started occurring in .51

I'm afraid people don't know what versions you are talking about.

Best regards,
									Pavel
-- 
http://www.livejournal.com/~pavelmachek

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Freezing between .48 and .51 when hitting swap.
@ 2020-11-01 16:46 NASA Jeff
  0 siblings, 0 replies; 4+ messages in thread
From: NASA Jeff @ 2020-11-01 16:46 UTC (permalink / raw)
  To: Linux Kml

I have an issue on my laptop which is old but with 2.5gb of ram an ssd
hdd and using zram compression I believe.
When ever it hits swap the system completely locks up and I have to reboot.
This only started occurring in .51
I only have access to my phone at the moment though I’ve looked at the
code and have what I believe is a workable solution that should
mitigate against and future issues. The code base looked a little old
so was probably quite stable but it really could do with some
modernisation.
The issue was with the active app in user space.
What needs to be done is to swap out inactive pages in background user
apps prior to the active apps hitting the memory threshold which was
causing the lockup to occure.

An improvement on the existing code would be to swap in and out
inactive pages gradually so as to avoid any heavy system load.

It may also be an idea to set the up priority to near idel for such
heavy io background processes so that the overlapping io doesn’t cause
issues with user space io.

I believe this is similar to the main Linux scheduler since bfs
because implementing a script to renice processes that started hitting
higish cpu and then again when their cpu dipped didn’t seem to make
much difference. It was unclear if this was also implemented for
cocurent io as the window managers now seem to queue io tasks instead
of executing them concurrently. Concurrent io was at least a historic
issue.

Kind regards,
Oliverthered

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Freezing between .48 and .51 when hitting swap.
@ 2020-11-01 16:20 NASA Jeff
  0 siblings, 0 replies; 4+ messages in thread
From: NASA Jeff @ 2020-11-01 16:20 UTC (permalink / raw)
  To: linux-kernel

I have an issue on my laptop which is old but with 2.5gb of ram an ssd hdd and using zram compression I believe.
When ever it hits swap the system completely locks up and I have to reboot.
This only started occurring in .51
I only have access to my phone at the moment though I’ve looked at the code and have what I believe is a workable solution that should mitigate against and future issues. The code base looked a little old so was probably quite stable but it really could do with some modernisation.
The issue was with the active app in user space.
What needs to be done is to swap out inactive pages in background user apps prior to the active apps hitting the memory threshold which was causing the lockup to occure.

An improvement on the existing code would be to swap in and out inactive pages gradually so as to avoid any heavy system load.

It may also be an idea to set the up priority to near idel for such heavy io background processes so that the overlapping io doesn’t cause issues with user space io.

I believe this is similar to the main Linux scheduler since bfs because implementing a script to renice processes that started hitting higish cpu and then again when their cpu dipped didn’t seem to make much difference. It was unclear if this was also implemented for cocurent io as the window managers now seem to queue io tasks instead of executing them concurrently. Concurrent io was at least a historic issue.

Kind regards,
Oliverthered 

Sent from my iPhone

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-09 16:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30  4:17 Freezing between .48 and .51 when hitting swap NASA Jeff
2020-11-09 16:57 ` Pavel Machek
2020-11-01 16:20 NASA Jeff
2020-11-01 16:46 NASA Jeff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).