HNHacker News
TopNewBestAskShowJobs

hmage

130 karma · joined October 9, 2014

submissionscomments
hmage··on M1 Mac owners are experiencing high SSD writes over short periods of time
If you can, run iosnoop in background and note every program that writes 4kb chunks a lot.

These are wearing your SSD down.

And no, they will not be combined together because most of these shitty apps have O_DIRECT flag set or call fsync() after each write(), making the OS obligated to hit SSD with 4kb write.

SSD's don't operate that way, though, a 4kb write is guaranteed to become a bigger write since SSD cell/block is usually either 512kb, or 1mb, or 2mb, or hell even 4mb. So one 4kb per second becomes 4mb per second, and that's 345.6GB/day.

Pretty scary how one shitty app can ruin your ssd so fast, huh? I saw google drive app do 50 small writes per second. That's ~2TB/day.

hmage··on M1 Mac owners are experiencing high SSD writes over short periods of time
If you follow the original twitter thread - https://twitter.com/marcan42/status/1364409829788250113 - you'll find that it's not affecting all M1 macs, and affects many intel macs, therefore it's almost guaranteed to be third party app's behaviour (writing 4kb chunks with O_DIRECT will lead to SSD write amplification)
hmage··on M1 Mac owners are experiencing high SSD writes over short periods of time
To support your thought -- https://arstechnica.com/information-technology/2016/11/for-f...

Since it's not happening to everyone (check the original twitter thread), I'm 100% sure it's third party apps writing in small 4kb chunks with O_DIRECT file opened, therefore creating write amplification effect where 4kb write becomes SSD block size write (for example 4mb), therefore one 4kb write per second, instead of being 0.3GB/day, becomes 345.6GB/day.

hmage··on Go is not an easy language
> the principal that a bit of code should care as little as possible about things it's not about

Can you find/quote where that principle comes from? I'm genuinely curious.

hmage··on Google Stadia shuts down internal studios, changing business focus
Google had to solve same problem any new traditional gaming console has to solve -- get publishers interested in creating for that console.

Good luck with that. The moat is so high that even if you have tech from year 2222, the business side trumps technology.

hmage··on Computer input latency from 1977-2017 (2017)
Modern game engines buffer 3 or 4 frames, sometimes 5. Not unusual to have 140ms latency on 60hz screen between clicking mouse1 and seeing the muzzle flash.

  * deferred vs forward rendering (deferred adds latency)
  * multithreaded vs singlethreaded
  * vsync (double buffering)
https://www.youtube.com/watch?v=8uYMPszn4Z8 -- check at 6:30 the latency of 60fps vsync on 60hz. It's not even close to 16ms (1/60), it's ~118ms (7.1/60).

It's far cry from simplified pure math people think of when they think of fps in games or refresh rate for office and typing. Software is very very lazy lately, and most of the time these issues are being fixed by throwing more hardware at it, not fixing the code.

hmage··on Computer input latency from 1977-2017 (2017)
In the article: > We get a 90 ms improvement from going from 24 Hz to 165 Hz.

As per the linked article, the observed delay improvement isn't one frame, more like ~3 frames. It doesn't go up from 1/24 to 1/165, it goes from 2.5/24 to 2.5/165.

Computer software waits a lot more than it did in 1977. That's why 240hz displays feel much more snappier even if it's supposed to be less noticeable -- you're waiting for same 3 frames, but they pass by much faster.

hmage··on Don't Use VPN Services (2016)
> and would fight any attempts of getting the details they do have on you

That sounds like one of those things that original article says "can never be verified". Correct me if I'm wrong.

hmage··on Factorio and Software Engineering
- Satisfactory

Factorio but in 3d.

hmage··on Valve and HackerOne: how not to handle vulnerability reports
Google Project Zero is doing exactly that -- disclosing them in 90 days no matter if they're fixed or not.

This kind of pressure is helpful, because otherwise stories of OP will be dominant and security problems will stay unpatched.

hmage··on Mount cloud storage (S3, Backblaze) using SMB/NFS directly to your file system
Not only that, by using this you will increase your S3 bill, by definition of how this works.

If you are going to use windows explorer and enter a directory full of images — windows explorer will fetch thumbnail for _every_ image. If you have 50000 files there, that's 50000 requests + bandwidth for 50000 files.

Same for video or audio. Getting metadata isn't free.

But the worst case scenario if you have a big big file, let's say vhdx disk image, that you mount and keep modifying every minute.

S3 protocol doesn't have 'modify', it will _have_ to reupload entire file every time even if a single byte is changed. For a 10G file changed 1000 times that's 10 terabytes of traffic.

hmage··on Mount cloud storage (S3, Backblaze) using SMB/NFS directly to your file system
Important — they will see every file you upload and download, because they are acting as a proxy and will be able to fetch any file stored with same credentials without you knowing.

By using this you will violate contractual obligations to prevent leaks. That includes majority of NDA agreements.

hmage··on Explaining copyright broke the YouTube copyright system
About that -- https://nakedsecurity.sophos.com/2020/02/28/google-has-right...

>> a Seattle appeals court said on Wednesday. It’s neither a public forum nor a “state actor”, and it can’t be held to First Amendment court oversight as if it were a government body.

>> »violation of First Amendment protection of free speech. That argument doesn’t fly, the appeals court said on Wednesday, given that YouTube isn’t a public forum

The big mistake people make is that youtube is a public platform/forum. It is not, it's a privilege that their server accepts your browser's request, not a right. They have every right to refuse for any reason they want. Same for videos you upload there, them holding it is a privelege, not a right.

It's in company's best interest to make people believe that it's a public forum, because people will start using it every day. In case of google, people use their browser to visit their website, sometimes using their ISP (google fiber), and log in using their account. As soon as you do something google doesn't like, you risk losing access to one of those, because it's not actually yours, it's a service provided as a privelege, unfortunately.

hmage··on Pay up or we’ll make Google ban your ads
with google everything is sunshine and rainbows until the moment you expect to get paid by google

then they will use every excuse not to pay you

1. suddenly you're frauding

... you fix that ...

2. suddenly you don't have proper paperwork

... you fix that ...

3. prove that you're a legal business

... you fix that ...

4. we found inconsistencies in your paperwork, we will hold the money until you prove to us that those inconsistencies are minor

... you fix that ...

5. your bank has refused our payment (bank then says they never even seen the money), please try a different bank

... you fix that ...

6. with so much time has passed, we will not send you the money right now and will bundle up the payment with the upcoming billing cycle

... you wait for that ...

7. GOTO 1

hmage··on What: A terminal tool to check what is taking up your bandwidth
setcap is Linux-specific thing. Doesn't exist on freebsd, darwin(macosx) or any other unix.
hmage··on Apple changes Crimea map when viewed from Russia
https://i.imgur.com/2HaIhPh.jpg

Ukrainian users see a state/province border (top image)

German users see a disputed international boundary (middle image)

Russian users see an undisputed international boundary and Russian spellings of city names (bottom image).

(and I think there are generally no borders shown in the oceans)

hmage··on Apple changes Crimea map when viewed from Russia
Depends in which direction.
hmage··on Apple changes Crimea map when viewed from Russia
small sidenote -- telegram has nothing to do with russia, the founder had to flee russia to ensure his freedom, and that was _before_ he created telegram.
hmage··on Apple changes Crimea map when viewed from Russia
There is a White House in russia. https://en.wikipedia.org/wiki/White_House_(Moscow)
hmage··on Apple Antitrust Probe – Responses to Congress [pdf]
I think you got that backwards.

apple is blocking exec flag on mmap'ed blocks because of security concerns.

Malware _relies_ on that ability to avoid static analysis.

hmage··on Linode wants all VPS idle all time, raises a ticket if don't idle for 24 hours
What's the definition of over-utilizing a VPS?
hmage··on U.S. Escalates Online Attacks on Russia’s Power Grid
False flag operations aren't new concept, taking out Ukraine's power plants for a few hours could also be false flag operation with Russia not even involved as a pretext to get more military funding. Or russian links to Trump a false flag operation by some third party to install their own president. I've seen russia used as a scary monster so often I always think "who does _actually_ benefit from this" whenever russia comes up in news headlines.
hmage··on Stadia Founder's Edition
You can sign up for GeForce Now -- it already has overwatch. I played it yesterday on my macbook. Felt like local.
hmage··on Stadia Founder's Edition
Wrong, GeForce Now is a streaming service -- https://www.nvidia.com/en-us/geforce/products/geforce-now/
hmage··on Supreme Court rules antitrust lawsuit against Apple can proceed
In my experience, if there's an option to ask same price everywhere, sellers will do that. So on app store it will cost (for example) 4.99$, and on third party app store without 30% cut, the developers will still set the price of 4.99$.

The only kind of place I've seen prices less than MSRP is discount stores like cdkeys. For example, try to find microsoft windows that costs less than MSRP -- on all stores, first party and third party, the price will be the same.

So, lack of 30% markup is very unlikely to reduce the final asking price by 30%.

hmage··on Building your own deep learning computer is 10x cheaper than AWS
The problem is that there's already open-source nvidia driver -- https://nouveau.freedesktop.org -- but it's so feature incomplete that it's good only for hobby. You can't run CUDA on it, you can't run any recent games on it, you can run TensorFlow on it, you can't run PyTorch on it, etc etc -- it is essentially useless and has been so for many years.
hmage··on Chrome 69: “www.” subdomain missing from URL
If you're not in Google's index, then it's likely you're not in Google's interest to use Google's product to visit your site, since the company prefers if you use their search rather than type links directly or follow links from other links, hence they want to kill the URL — https://www.wired.com/story/google-wants-to-kill-the-url/
hmage··on Apple and Russia Face Off Over Telegram on App Store
Russian Govt asked to remove telegram from App Store, not Mac App Store. Apple will try their best to do the minimum required from them. (Which is nothing since they still didn't remove telegram from app store)
hmage··on Project Gutenberg blocks access from Germany
as a first example that pops up in my head, google for Kim Dotcom
hmage··on Hetzner Cloud
Yeah. I was confused for a while as well.
← PreviousPage 2 of 3Next →