Re: tmpfs is not a ramdisk (was: delimiters with more than one character? ...)
On Fri, Jul 17, 2020 at 02:25:22PM -0400, rhkramer@gmail.com wrote:
On Friday, July 17, 2020 12:09:05 PM David Wright wrote:
On Fri 17 Jul 2020 at 13:22:12 (+0200), Nicolas George wrote:
rhkramer@gmail.com (12020-07-17): […]
Among other things, should I be worried that it won't disappear on power loss / reboot?
Depends on what kind of disappear you want. If all you want is not to have to worry about cleaning up, then you are good with tmpfs.
If you are worried that sensitive data may end up on disk, then encrypt your swap with an ephemeral key.
In the absence of encryption, bear in mind that cleaning up only takes place while the system boots up. Until then, everything remains on the disk and can be examined merely by booting from, say, a USB stick instead.
Just to make sure I understand, you're talking about clean up of swap on an HDD partition, right?
As far as the tmpfs stuff in RAM, it basically disappears when the power decays (after a not too long delay) and barring some kind of NSA techniques to capture it?
(But, I guess I should think about encrypting swap :-(
PC snow-nerf: "You don't need encrytion if you've got nothing to hide, and unless you're visiting friends during the lock down which you must not do because it's like totally illegal, you've got nothing to hide." Alpha nagger: "I don't have to be doing anything wrong, to want my privacy!" (Hush now, you're only s'posed to talk about human rights, not actually live them .. right?) If you're current RAM+swap is say 8GiB+8GiB, one alternative is to consider upgrading RAM to 16GiB and ditching swap entirely. That could save your lazy butt from having to learn how to encrypt swap - and just so you know I do in fact want you to feel good about your choice, it will also mean a faster overall user experience ;D
On 7/18/20 00:18, Zenaan Harkness wrote:
If you're current RAM+swap is say 8GiB+8GiB, one alternative is to consider upgrading RAM to 16GiB and ditching swap entirely. That could save your lazy butt from having to learn how to encrypt swap - and just so you know I do in fact want you to feel good about your choice, it will also mean a faster overall user experience ;D
Some of us out here are stuck on older systems with a maximum of 8GiB of RAM. Others may be using systems like the Raspberry Pi that can't be upgraded (that I am aware) and that typically max out at 4GiB or 8GiB. Sure, it will be a bit faster having 16GiB of RAM and no swap than 8GiB RAM + 8GiB swap if that is an option. However, modern operating systems are designed to swap out out certain things to make the best use of all available RAM and so you will technically not get the full benefit of a RAM upgrade going this route. It may be, however, that your usage patterns only max out 16GiB of virtual memory usage either way, in which case it may not matter as much. -- Shawn K. Quinn <skquinn@rushpost.com> http://www.rantroulette.com http://www.skqrecordquest.com
On 18/07/2020 06:31, Shawn K. Quinn wrote:
On 7/18/20 00:18, Zenaan Harkness wrote:
If you're current RAM+swap is say 8GiB+8GiB, one alternative is to consider upgrading RAM to 16GiB and ditching swap entirely. That could save your lazy butt from having to learn how to encrypt swap - and just so you know I do in fact want you to feel good about your choice, it will also mean a faster overall user experience ;D
Some of us out here are stuck on older systems with a maximum of 8GiB of RAM. Others may be using systems like the Raspberry Pi that can't be upgraded (that I am aware) and that typically max out at 4GiB or 8GiB.
Sure, it will be a bit faster having 16GiB of RAM and no swap than 8GiB RAM + 8GiB swap if that is an option. However, modern operating systems are designed to swap out out certain things to make the best use of all available RAM and so you will technically not get the full benefit of a RAM upgrade going this route.
You could, of course, use 8Gib of RAM as a swap ramdisk ... I'll get my coat Peter Fairbrother It may be, however, that your usage
patterns only max out 16GiB of virtual memory usage either way, in which case it may not matter as much.
On Sun, Jul 19, 2020, 3:20 AM Peter Fairbrother <peter@tsto.co.uk> wrote:
Sure, it will be a bit faster having 16GiB of RAM and no swap than 8GiB RAM + 8GiB swap if that is an option. However, modern operating systems are designed to swap out out certain things to make the best use of all available RAM and so you will technically not get the full benefit of a RAM upgrade going this route.
You could, of course, use 8Gib of RAM as a swap ramdisk ...
I'll get my coat
No need. Putting your swapfile on tmpfs is how to encrypt your ram, significantly deterring remanance and emissions attacks on its privacy, but also crashing many kernels. K
Peter Fairbrother
It may be, however, that your usage
patterns only max out 16GiB of virtual memory usage either way, in which case it may not matter as much.
There is proof inside many peoples' electronics. Proof that a marketing group would contract development of a frightening virus. A virus that responds to peoples' keystrokes and browsing habits, and changes what people see on their devices. A virus that alters political behavior en masse, for profit.
participants (4)
-
Karl
-
Peter Fairbrother
-
Shawn K. Quinn
-
Zenaan Harkness