News for hackers. Stuff that matters.
Re:Amazon Elastic File System Update – Sub-Millisecond Read ... by lpapez on Tuesday February 15, 2022 @09:10AM (#30346602)
This reminds me of a 10x-developer coworker at my previous company. Whenever more performance was needed from the system he would just say "sure, just give me a week to remove the sleep() calls from the code".
Re:Amazon Elastic File System Update – Sub-Millisecond Read ... by Cthulhu_ on Tuesday February 15, 2022 @09:23AM (#30346775)
See it's one of those things where you can't be sure if it's sarcasm or not; I've read plenty of anecdotes where it was in fact a case of putting in sleep() on purpose (either to remove it later to show off, or because customers were complaining things went too fast), or leaving it in by accident.

Another variant is that older games (think cartridges, some CD's) had a block of unused data, so that when the game approached completion and they had to crunch to make it fit on the cartridge, they had some space left over. Probably the same for RAM memory.

Re:Amazon Elastic File System Update – Sub-Millisecond Read ... by musingsole on Tuesday February 15, 2022 @10:14AM (#30347481)
I've done this.

I had to add sleep calls because the client had a simple resource consumption monitor that would complain if anything used more than 80% of the machine's CPU. Arguably a stupid policy; arguably simple enough to work.

Some time later, the client wanted the script to finish faster...so the sleep calls were deleted, and they changed their resource monitor.

Re:Amazon Elastic File System Update – Sub-Millisecond Read ... by Spivak on Tuesday February 15, 2022 @12:59PM (#30350186)
I mean as an infra person I can kinda agree with this. I wouldn’t put it on the app, and would have used cgroups but I don’t want to starve OS services for cycles.