On Sun, Oct 7, 2018 at 10:07 AM <m...@jamesrobb.ca> wrote:

> Hello,
>
> I would like to know if there is some update to date information about the
> algorithm(s) used in the current LTS (4.14) version of the linux kernel. In
> particular, I'm hoping to find some information about the actual
> implementation. If such information exists, I think it'd be a great place
> to start before trying to make sense of the kernel code base for virtual
> memory.

One fact about Linux kernel (vs Windows Kernel) is that Linux kernel DOES
NOT swap out its kernel memory, but only its userspace memory.   So
algorithm wise it is much simpler than Windows:   just imagine while
swapping in/out memory, suddenly the kernel also need to swap in its
memory.   The locking scenario for this can easily go into a deadlock.

And so for userspace memory it really depends on how interactive you want
to give to user.   The more interactive process you definitely would not
want to let the memory be swapped out - as the whole userspace will have to
be put on hold whole the swap operation is taking place.   But if you know
all your processes are NOT in batch mode, then the memory usage will likely
to be in small chunks - so you definitely can afford to swapout/swapin
frequently as you expected the turnaround time for each swap operation to
be fast.

And so many criteria are needed to decide on the best way....

For technical resources my favorite are from lwn.net:

https://lwn.net/Articles/704478/

https://lwn.net/Articles/705758/

https://lwn.net/Articles/717707/

https://lwn.net/Articles/690079/



> Thanks,
>
> --
> You received this message because you are subscribed to the Google Groups
> "linuxkernelnewbies" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linuxkernelnewbies+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Regards,
Peter Teoh

-- 
You received this message because you are subscribed to the Google Groups 
"linuxkernelnewbies" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linuxkernelnewbies+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to