The author seems to forget that ext-based filesystems keep 5% of disk space available for root at all times by default, known as "reserved blocks".[0] That means if a non-root user uses all of the available space, it wasn't really all of the space -- root still has access to 5% free space within that partition. That's exactly the same as the useless 8GB file but in an officially-supported manner. If you run out of di…
Sure, but one of the most common causes of disks being filled on Linux is either the kernel or some process running as root filling the disk with endless repeating log entries.
All my servers have an 8 GB empty file on disk
691–700 of 715 posts
Re: All my servers have an 8 GB empty file on disk
#692Earlier quoted context omitted.
Sure, but one of the most common causes of disks being filled on Linux is either the kernel or some process running as root filling the disk with endless repeating log entries.
It's a good point that the process that is flooding the disk could be running as root and therefore bypasses the reserved blocks restriction. It's also worth noting that the kernel is not a process and it does not write directly to files in the conventional sense. syslog-ng or its equivalents (which do run as root) will pick up messages from the kernel's circular ring buffer at /dev/kmsg and write them to a text file…
Re: All my servers have an 8 GB empty file on disk
#693Earlier quoted context omitted.
> competitive free market economy It was not even believed by Adam Smith. He writes that it only works that way in a controlled environment. That’s why European countries usually rank higher in market freedom than the US, because we don’t have companies getting so cancerously big that they have very real effects on law making (how lobbying is legal is still beyond me)
The USA got rich because of unbridled capitalism. Then richness trickled down through generations of companies while regulations caught up and their government became a behemoth not dissimilar to the ones living in EU and that the USA was running from. Nowadays the USA jurisdiction is comparable to the EU one, but they still have more $$$. If you like freedom rankings I recommend these ones: https://www.heritage.org/…
Re: All my servers have an 8 GB empty file on disk
#694Earlier quoted context omitted.
> competitive free market economy It was not even believed by Adam Smith. He writes that it only works that way in a controlled environment. That’s why European countries usually rank higher in market freedom than the US, because we don’t have companies getting so cancerously big that they have very real effects on law making (how lobbying is legal is still beyond me)
The USA got rich because of unbridled capitalism. Then richness trickled down through generations of companies while regulations caught up and their government became a behemoth not dissimilar to the ones living in EU and that the USA was running from. Nowadays the USA jurisdiction is comparable to the EU one, but they still have more $$$. If you like freedom rankings I recommend these ones: https://www.heritage.org/…
Re: All my servers have an 8 GB empty file on disk
#695Earlier quoted context omitted.
Is fish not considered meat?
Not in some cultures. My youngest daughter isn't a big meat eater, and certainly hates seafood. She was on an organised tour to Spain with her youth orchestra so ticked the "vegetarian" box for meals. Inevitably her meal came with fish as the protein. Apparently in Spain, fish aren't considered as sentient like chicken or hoofed animals and hence are akin to vegetables.
Any vegetarian who eats fish because of that reason really needs to update their ethics to the current millennium.
Re: All my servers have an 8 GB empty file on disk
#696Same idea as this game development legend https://www.dodgycoder.net/2012/02/coding-tricks-of-game-dev... > he had put aside those two megabytes of memory early in the development cycle. He knew from experience that it was always impossible to cut content down to memory budgets, and that many projects had come close to failing because of it. So now, as a regular practice, he always put aside a nice block of memory to…
Re: All my servers have an 8 GB empty file on disk
#697With physical servers it might be a different story and might be a good idea. I tend to size filesystems to the requirements I have and enlarge them when required (it gives you a periodic reminder to think about what waste you have accumulated). That way, I can still add space even if the filesystem has been filled up. However, if you do it just to have some space when you need it, it probably is overkill and to have an empty buffer file is a lot easier to handle.
Re: All my servers have an 8 GB empty file on disk
#698Re: All my servers have an 8 GB empty file on disk
#699Such flexibility has been invaluable over the years. Thankfully with block storage and modern operating systems/file systems growing volumes can be significantly easier for most servers.
Re: All my servers have an 8 GB empty file on disk
#700Earlier quoted context omitted.
This is similar to how some government agencies retain their budgets. At the end of the budget period they've only spent 80% of their allocated budget, so they throw out a bunch of perfectly good equipment/furniture/etc. and order new stuff so that their budget doesn't get cut the following year, rather than accepting that maybe they were over-budgeted to begin with. Rinse, repeat, thus continuing the cycle of wastin…
I think the problem is that you do not need 100% of your budget every year, but getting it back when you do need it is much harder than keeping it in the first place. Definite case of misaligned incentives.