News: 0001613538

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux Kernel Improvement Can Make Hibernation Several Times Faster With Slow SSDs

([Linux Kernel] 5 Hours Ago Faster Hibernation)


A patch series sent out for review this weekend can significantly improve the system hibernation performance under Linux. Particularly for those with slower SSDs, the patches can make Linux hibernate up to several times faster.

Linux kernel developer Kairui Song is working on improving hibernation performance with the new swap allocator that originally didn't provide a high performance allocation path for hibernate. This new fast allocation path is especially beneficial for SSD devices with poor 4K performance.

At an extreme, the Samsung 830 SSD that uses Serial ATA 2.0 the Linux 6.19 kernel takes 324 seconds to hibernate but with the two new patches it can drop down to just 35 seconds!

For faster storage devices the performance improvement is marginal but again especially for those drives with poor 4K write performance a magnificent speed-up can be observed where " the performance is several times better. "

[1]The patches amount to just reworking a little more than two dozen lines of code in the kernel's swap file code. The code is under review and too late for the v7.0 cycle but we'll see if it's ready by the v7.1 kernel release mid-year.



[1] https://lore.kernel.org/linux-mm/20260215-hibernate-perf-v2-0-cf28c75b04b7@tencent.com/



Brief History Of Linux (#19)
Boy meets operating system

The young Linus Torvalds might have been just another CompSci student if
it wasn't for his experiences in the Univ. of Helsinki's Fall 1990 Unix &
C course. During one class, the professor experienced difficulty getting
Minix to work properly on a Sun box. "Who the heck designed this thing?"
the angry prof asked, and somebody responded, "Andrew Tanenbaum".

The name of the Unix & C professor has already escaped from Linus, but the
words he spoke next remain forever etched in his grey matter:
"Tanenbaum... ah, yes, that Amsterdam weenie who thinks microkernels are
the greatest thing since sliced bread. Well, they're not. I would just
love to see somebody create their own superior Unix-like 32-bit operating
system using a monolithic kernel just to show Tanenbaum up!"

His professor's outburst inspired Linus to order a new IBM PC so he could
hack Minix. You can probably guess what happened next. Inspired by his
professor's words, Linus Torvalds hacks together his own superior
Unix-like 32-but operating system using a monolithic kernel just to show
Mr. Christmas Tree up.