Live data from Hacker News

All my servers have an 8 GB empty file on disk

brianschrader.com

231–240 of 715 posts

Re: All my servers have an 8 GB empty file on disk

#231

Earlier quoted context omitted.

What?

If it's morally incorrect to get to the license server early and snatch a roaming license you might not use to its fullest, is it not also wrong to access the property market early and snatch a bunch of land you might not use to its fullest?

The difference is that market mechanisms are meant to allocate items to those that value them the most (assumed to be the same as their willingness to pay). Claiming a licence by contrast has little cost.

Re: All my servers have an 8 GB empty file on disk

#232

Earlier quoted context omitted.

Not quite the same situation as described in the article, but it is still possible for the kernel to swap memory in and out of disk even without a swap file/partition. Memory used for storing executable binaries is allowed to be moved out of memory, as a copy of it lives on disk. This means you can still encounter memory thrashing (and thus system unresponsiveness) under low memory situations.

> Memory used for storing executable binaries is allowed to be moved out of memory, as a copy of it lives on disk. On Linux, this is not necessarily the case, as you can change the file on disk while the executable is running. I don't know if Linux just keeps executable code in memory all the time, or if it is smart enough to detect whether a copy of executable pages still lives on disk.

You should get a "text file busy" error if you try that.

What you can do is delete and then recreate the executable. Then the deleted data simply sticks around on disk until it's no longer referenced

Re: All my servers have an 8 GB empty file on disk

#234
I have a dual-boot laptop with windows and linux, and use the ntfs partition to share data between them

Recently, I extracted a large archive with Linux on the ntfs, and the partition was full

Then Windows did not start anymore

Linux would only mount the partition as read-only, because it was marked dirty after the failed start. Finally I found a tool to reset the mark, and delete the files.

Now Windows starts again, but my user account is broken. It always says "Your Start menu isn't working. We'll try to fix it the next time you sign in.", then I sign out, and it is still broken

I had to make a new user account

Re: All my servers have an 8 GB empty file on disk

#235
post #207

It's interesting to me that linux doesn't natively reserve a little space to allow basic commands like directory listing and file deletion to function even with a full disk. Because really the biggest problem when I've had a partition get full, is I sometimes can't even delete the offending log file.

It still boggles my mind that the act of deleting a file can fail because it requires space to perform the act.

If y'ask me, that's a fundamental design flaw. Of course nobody asked me...

Re: All my servers have an 8 GB empty file on disk

#236
post #129

Earlier quoted context omitted.

Virtual machine disk space (e.g. Xen, Linode, AWS EC2, or similar) does not work this way. Each VM gets a dedicated amount of disk space allocated to it, they don't all share a pool of free space.

Yes they do with the "dyanmic allocation" the parent comment mentions; VMware datastore has 1TB total, you put VMs in with dynamically expanding disks they are sharing the same 1TB of free space and will fill it if they all want their max space at the same time and you've overprovisioned their max space. And if you haven't overprovisioned their max space, you may as well not be using dynamic allocation and use fixed…

I see, a VMware feature, thanks for clarifying. I suppose it's a nice idea in theory, but you'd have to be crazy to use that in production, or for any workload that you care about. It would just be a ticking time bomb.

Re: All my servers have an 8 GB empty file on disk

#237
post #209
post #190

Earlier quoted context omitted.

Hoarders will buy the rest of it. During the 2-month lockdown a year ago, I would purchase 4 frozen pizzas at a time when I had a chance to buy them, because I was so upset that I could not buy one when I wanted a single one during the 2 previous weeks, because of hoarders who had been faster than me. People think of toilet papers, but it is not just that. Pasta, rice, flour, yeast, plenty of useful things went missi…

but that's the point, by responding in that way you have become one of those hoarders.

You could say it's a real tragedy

Re: All my servers have an 8 GB empty file on disk

#239

> On Linux servers it can be incredibly difficult for any process to succeed if the disk is full. Copy commands and even deletions can fail or take forever as memory tries to swap to a full disk and there's very little you can do to free up large chunks of space. This reasoning doesn't make sense. On Linux, swap is preallocated. This is true regardless of whether you're using a swap partition or a swap file. See man…

I've seen Linux systems simply crash when root partition was 100% full, though it was an embedded system, not representative to a big servers.
Post reply on HN