FlyerTalk Forums

FlyerTalk Forums (https://www.flyertalk.com/forum/index.php)
-   Travel Technology (https://www.flyertalk.com/forum/travel-technology-169/)
-   -   RAM Disk with an SSD? (https://www.flyertalk.com/forum/travel-technology/1469074-ram-disk-ssd.html)

ohliuw Jun 5, 2013 5:42 pm


Originally Posted by nkedel (Post 20863082)
Yup, at least with Windows. There are some interesting compressed-RAM drivers on Linux which let you use a chunk of compressed RAM as part of the swap, and are sometimes used on Android builds.

Really no reason to have a swap file these days, other than that Windows doesn't behave well without one; I usually shrink it to 1gb.

You are missing a point here. Swap file is a swap file (albeit called differently) in Windows, Linux, Esxi, etc. Say you have 16G ram. Once it's filled up and the machine needs to put 1g in RAM, it will take 1g from the RAM and put it on the hdd (the swap file). Then it will take the new data and put in the empty space in the memory.

It makes no sense to put something reduce the memory to put there something that is supposed to be used only when the memory is full

nkedel Jun 5, 2013 11:03 pm


Originally Posted by ohliuw (Post 20873126)
It makes no sense to put something reduce the memory to put there something that is supposed to be used only when the memory is full

In the general case, you're right.

In the specific case I mentioned (the zram driver on Linux), exchanging some main memory for a compressible memory area makes a lot of sense for some workloads. The exchange, due to compression, is nowhere near 1:1.

elCheapoDeluxe Jun 6, 2013 11:26 am


Originally Posted by ohliuw (Post 20873126)
You are missing a point here. Swap file is a swap file (albeit called differently) in Windows, Linux, Esxi, etc. Say you have 16G ram. Once it's filled up and the machine needs to put 1g in RAM, it will take 1g from the RAM and put it on the hdd (the swap file). Then it will take the new data and put in the empty space in the memory.

It makes no sense to put something reduce the memory to put there something that is supposed to be used only when the memory is full

Well, not exactly for Windows. As a legacy of architecture begun with NT 3.x when 128mb was a lot of RAM, Windows will actually prefer some swap file usage and then use RAM to cache the actively used portions of the swap file. I agree that it doesn't make sense to put a swap file in RAM, though. There may be specific instances with specific OS's, but I think any benefit seen in Windows would be a freak occurrence.

Loren Pechtel Jun 6, 2013 2:21 pm


Originally Posted by PTravel (Post 20863321)
I know. However, I've been monitoring the projected life of my SSDs (I have them installed in three of my machines) using a variety of software. They'll expire long after the computers they're in have become obsolete.

Second this. I have two SSDs in this box, the system drive and one hosting some virtual machines.

Both seem to be wearing down at about 1%/year.

ohliuw Jun 6, 2013 4:25 pm


Originally Posted by nkedel (Post 20874202)
In the general case, you're right.

In the specific case I mentioned (the zram driver on Linux), exchanging some main memory for a compressible memory area makes a lot of sense for some workloads. The exchange, due to compression, is nowhere near 1:1.

There are loadfull of memory techniques. For example, ESXi uses something called Transient Page Sharing, which in other words is memory dedup. It also uses memory compression (caching of pages to be swapped), which outperforms swapping since decompressing is faster than loading from storage. However, the swap file is still, and no matter what memory management techniques you use, the swap is the last resort and is meant to be stored AWAY from the memory.

ohliuw Jun 6, 2013 4:27 pm


Originally Posted by nkedel (Post 20874202)
In the general case, you're right.

In the specific case I mentioned (the zram driver on Linux), exchanging some main memory for a compressible memory area makes a lot of sense for some workloads. The exchange, due to compression, is nowhere near 1:1.

Btw, there are many OSes that better than Linux, you know that, right ;)

nkedel Jun 6, 2013 7:56 pm


Originally Posted by ohliuw (Post 20878497)
There are loadfull of memory techniques. For example, ESXi uses something called Transient Page Sharing, which in other words is memory dedup.

Very similar to KSM ("Kernel Samepage merging") on Linux, normally used with KVM.


It also uses memory compression (caching of pages to be swapped), which outperforms swapping since decompressing is faster than loading from storage. However, the swap file is still, and no matter what memory management techniques you use, the swap is the last resort and is meant to be stored AWAY from the memory.
The difference is in how the techniques are implemented; zram appears to the OS as a block device, and uses the underlying swap-drive mechanism. In a logical sense, swap can refer to anything that takes memory out of the directly-addressable space and requires the OS to do work to access, whether it's on disk, elsewhere in RAM, or hypothetically out on the network somewhere. The code is closely tied to (for example) demand-paging from a memory-mapped file or executable.

I've written some of this stuff professionally. Have you?


Originally Posted by ohliuw (Post 20878512)
Btw, there are many OSes that better than Linux, you know that, right ;)

Heh, I'm not so sure about that these days. "Better" can be looked at overall, or for any specific job/set of criteria, of course, and for any specific job, there may be better options(*), but you will not find any other OS scale to as many different jobs as well overall -- or as cost effectively, for most of them.

In the overall sense of "better," I don't see one, and across all the platforms it's running no other OS is getting anywhere near the amount of testing or engineering effort that Linux is, so I expect that gap to keep growing.

(* a single instance of z/OS will be more reliable and scale to bigger hardware; the GUIs in Windows and the MacOS are more mature; Solaris and the free *BSDs have some specific ways in which they're more efficient. I can't think of a single nice thing to say about AIX though :D )

ohliuw Jun 7, 2013 8:58 pm


Originally Posted by nkedel (Post 20879484)
Very similar to KSM ("Kernel Samepage merging") on Linux, normally used with KVM.



The difference is in how the techniques are implemented; zram appears to the OS as a block device, and uses the underlying swap-drive mechanism. In a logical sense, swap can refer to anything that takes memory out of the directly-addressable space and requires the OS to do work to access, whether it's on disk, elsewhere in RAM, or hypothetically out on the network somewhere. The code is closely tied to (for example) demand-paging from a memory-mapped file or executable.

I've written some of this stuff professionally. Have you?



Heh, I'm not so sure about that these days. "Better" can be looked at overall, or for any specific job/set of criteria, of course, and for any specific job, there may be better options(*), but you will not find any other OS scale to as many different jobs as well overall -- or as cost effectively, for most of them.

In the overall sense of "better," I don't see one, and across all the platforms it's running no other OS is getting anywhere near the amount of testing or engineering effort that Linux is, so I expect that gap to keep growing.

(* a single instance of z/OS will be more reliable and scale to bigger hardware; the GUIs in Windows and the MacOS are more mature; Solaris and the free *BSDs have some specific ways in which they're more efficient. I can't think of a single nice thing to say about AIX though :D )

You keep thinking in terms of desktop OS ;) I will tell you this about Linux. Vmware used to have 2 versions - ESx and ESxi. Starting version 5, they scrapped ESX as it has Linux service console, and they figured out that 95% of the patching was due to the Linux stuff. Now they only run the VMKernel, which is very short, yet very powerful code ^

nkedel Jun 7, 2013 10:37 pm


Originally Posted by ohliuw (Post 20885507)
You keep thinking in terms of desktop OS ;)

No, you mistake Linux, the true swiss-(err, finnish-)army knife of OSes, which can scale from the embedded code running your microwave or toaster to some of the largest machines in the world, as purely being a desktop OS. :)


I will tell you this about Linux. Vmware used to have 2 versions - ESx and ESxi. Starting version 5, they scrapped ESX as it has Linux service console, and they figured out that 95% of the patching was due to the Linux stuff. Now they only run the VMKernel, which is very short, yet very powerful code ^
...and essentially single-purpose code, at that, that gets used -- basically -- to provide an environment for your choice of two "desktop" OSes (although neither one is by any means restricted to the desktop anymore, even if Linux scales both up and down a lot better than Windows does.) :)

Meanwhile VMWare is losing market share to Xen (which uses Linux for a console and to handle some I/O tasks) and KVM (which runs as part of the Linux kernel) and Hyper-V (where I'm not sure how to describe the inter-relationship between the hypervisor and Windows kernel/console.)

:D


All times are GMT -6. The time now is 3:14 am.


This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.