News for hackers. Stuff that matters.
Re:Why Google Pixel lags 10x more than Moto Z by ChuckMcM on Monday December 12, 2016 @01:42AM (#13156123)
Not exactly a cheat. A calculated risk. A friend of mine were having the storage discussion on phones and realized that phones never really experience a 'power outage' in normal use. People use their phones, they get low in power, and then they plug them in. Or the battery gets so low the phone shuts itself off in an orderly manner.

In the 'computer is a phone' perspective there is no sudden power loss unless the user yanks the battery out of the back. That is presumably a rare occurrence for your typical user. As a result, the big risk for phone file systms is that the phone crashes, but nearly every phone I've seen preserves memory contents as long as power is applied, so even a crashed phone, on reboot can pick apart the previous bits in memory and reconstruct what was going on before it crashed.

Given that fairly unique to phone criteria I could see nobarrier as a legit option.

Re:Why Google Pixel lags 10x more than Moto Z by quotemstr on Monday December 12, 2016 @01:45AM (#13156136)
> reboot can pick apart the previous bits in memory and reconstruct what was going on before it crashed

What you're proposing is possible in theory, but no general purpose operating system I've seen actually attempts to recover page cache state from uncleared RAM upon reboot.

Re:Why Google Pixel lags 10x more than Moto Z by jrockway on Monday December 12, 2016 @03:00AM (#13156417)
Linux has PRINTK_PERSIST [1] to recover the printk logs after (warm) reboot.

[1] https://lkml.org/lkml/2012/3/13/45

Re:Why Google Pixel lags 10x more than Moto Z by reitanqild on Monday December 12, 2016 @05:06AM (#13156971)
Something related though battery (or capacitor) backed write-cache on high end servers.
Re:Why Google Pixel lags 10x more than Moto Z by derefr on Monday December 12, 2016 @02:08AM (#13156217)
> unless the user yanks the battery out of the back. That is presumably a rare occurrence for your typical user.

I've witnessed a number of phones with the "crumple zone"-alike feature of effectively ejecting the battery cover + battery out of the phone whenever you drop it.

Re:Why Google Pixel lags 10x more than Moto Z by ygra on Monday December 12, 2016 @02:17AM (#13156257)
I would hope dropping a phone is also a rare occurrence for typical phone users. Otherwise they're probably better off getting a Nokia 3210 instead of a smartphone with glass screen.
Re:Why Google Pixel lags 10x more than Moto Z by iopq on Monday December 12, 2016 @02:21AM (#13156276)
> I would hope dropping a phone is also a rare occurrence for typical phone users.

I drop my phone all the time and I don't have a case. It's fine.

Re:Why Google Pixel lags 10x more than Moto Z by marvy on Monday December 12, 2016 @03:38AM (#13156568)
Me too, though the screen did get a small crack once. If there was a 1% chance of file system corruption each time I dropped my phone, it would have happened to me by now, I think. And usually when I drop my phone, the battery comes out. It used to happen only half the time, but I think the cover got loosened as a result of all the times I dropped it, so now the battery falls out pretty much every time.
Re:Why Google Pixel lags 10x more than Moto Z by nabanicu on Monday December 12, 2016 @04:38AM (#13156845)
It's 2016, if you abruptly shut down a computer in the middle of a filesystem write the chances of ending up with a corrupted filesystem are of around a 0 %, so those are the chances of getting a brick when you drop your mobile.
Re:Why Google Pixel lags 10x more than Moto Z by jbg_ on Monday December 12, 2016 @05:10AM (#13156992)
If you mount with nobarrier I'd say that the chances are somewhat higher than 0%
Re:Why Google Pixel lags 10x more than Moto Z by nabanicu on Monday December 12, 2016 @05:38AM (#13157122)
Not with any filesystem with a proper journaling system. Filesystem corruption is almost impossible.
Re:Why Google Pixel lags 10x more than Moto Z by c3833174 on Monday December 12, 2016 @06:31AM (#13157311)
Barriers are what force the journal to be written consistently, and IIRC they were enabled by default after 2.6.31 because of corruption with ext4.
Re:Why Google Pixel lags 10x more than Moto Z by dilap on Monday December 12, 2016 @12:59PM (#13160154)
you could have corruption and not know. i'm pretty sure on the mac hfs+ corrupts files all the time (why? i've run into it multiple times). but it's not necessarily something you'll immediately notice.
Re:Why Google Pixel lags 10x more than Moto Z by marvy on Monday December 12, 2016 @02:27PM (#13161047)
That's upsetting. I'll try not to drop my phone while an update is in progress in that case.
Re:Why Google Pixel lags 10x more than Moto Z by awjr on Monday December 12, 2016 @03:27AM (#13156527)
I dropped my phone at the weekend without a case. I now have a shattered screen. :/ It's about the 5th time I've dropped my phone and this is the first time something like this has happened.
Re:Why Google Pixel lags 10x more than Moto Z by josephg on Monday December 12, 2016 @05:14AM (#13157023)
Apparently the glass in phone screens develops micro fractures from being dropped. (Well, from hitting the ground). You can't see them with the naked eye, but they weaken the glass and they grow with each successive drop.

It's probably not just bad luck that the glass happened to break after the Nth time you dropped it. It was bound to happen if you kept dropping the device.

Re:Why Google Pixel lags 10x more than Moto Z by skeptic2718 on Monday December 12, 2016 @04:39AM (#13156853)
Carpet or hard floor (ceramic, etc) ?
Re:Why Google Pixel lags 10x more than Moto Z by iopq on Monday December 12, 2016 @08:01AM (#13157719)
Wood floor and sometimes concrete. I don't drop it from my hand, usually from a pocket or lap, though.
Re:Why Google Pixel lags 10x more than Moto Z by cuu508 on Monday December 12, 2016 @05:07AM (#13156981)
What phone do you have?
Re:Why Google Pixel lags 10x more than Moto Z by iopq on Monday December 12, 2016 @08:01AM (#13157725)
Moto G, 3rd gen
Re:Why Google Pixel lags 10x more than Moto Z by Pxtl on Monday December 12, 2016 @01:03PM (#13160187)
Hah, I have 2nd gen. I drop it pretty often too. Slippery black plastic back.
Re:Why Google Pixel lags 10x more than Moto Z by paublyrne on Monday December 12, 2016 @03:17AM (#13156493)
I drop my phone with unnerving regularity, but I use a case and it's always fine.

I suspect that if I didn't have a case I wouldn't drop it so often.

Re:Why Google Pixel lags 10x more than Moto Z by vacri on Monday December 12, 2016 @02:31AM (#13156309)
I have to go with the article's position, though - I'd rather have the few seconds data loss and get the better responsiveness and a longer-lived device.
Re:Why Google Pixel lags 10x more than Moto Z by sdenton4 on Monday December 12, 2016 @02:57AM (#13156404)
It all depends which few seconds of data are lost, though, right?

Do you just lose a new contact, or corrupt an essential database?

Re:Why Google Pixel lags 10x more than Moto Z by piaste on Monday December 12, 2016 @04:49AM (#13156893)
> Do you just lose a new contact, or corrupt an essential database?

How essential are we talking about here?

What I mean is, your smartphone is a device that can get lost, stolen or destroyed any day. All the data that is physically stored in it should either be expendable or synced elsewhere.

Re:Why Google Pixel lags 10x more than Moto Z by cbr on Monday December 12, 2016 @09:50AM (#13158377)
Something could be corrupted and then that corrupted data could be synced to the cloud, trashing what you had there.
Re:Why Google Pixel lags 10x more than Moto Z by kogepathic on Monday December 12, 2016 @03:27AM (#13156530)
> Do you just lose a new contact

Are people creating new contacts that often on a phone? I probably do that only a few times per week. If the phone crashed immediately following the input, I'd just ask the person for their details again.

> corrupt an essential database?

It would only corrupt application data. Android isn't completely stupid, /system is mounted read-only on every Android phone I've ever seen.

I guess it depends on how highly you depend on application data remaining consistent.

Presumably the corruption would only apply to data that was modified but had not been flushed to flash before the power cycle, so at rest data shouldn't be affected.

Re:Why Google Pixel lags 10x more than Moto Z by Sean1708 on Monday December 12, 2016 @12:14PM (#13159708)

  >  I probably do that only a few times per week.
Look at Mr. Popular over here.
Re:Why Google Pixel lags 10x more than Moto Z by jcheng on Monday December 12, 2016 @11:44AM (#13159425)
> at rest data shouldn't be modified

If your data is kept in a SQLite database or any other type of compound storage scheme it's entirely possible to lose data that wasn't being modified, due to corruption of the metadata that governs the layout of the file (actually I don't have experience with SQLite file format specifically, but I ruined my startup's launch a decade ago with almost identical reasoning--thousands of pressed CD-ROMs in the garbage).

Re:Why Google Pixel lags 10x more than Moto Z by c3833174 on Monday December 12, 2016 @06:36AM (#13157340)
>longer-lived device.

Define longer-lived, you'll probably have replaced the battery several times before flash wear becomes an issue

Re:Why Google Pixel lags 10x more than Moto Z by nix0n on Monday December 12, 2016 @10:25AM (#13158660)
I've seen this too, but the Moto Z is not one of these phones (the battery is not "user"-removable).
Re:Why Google Pixel lags 10x more than Moto Z by bmm6o on Monday December 12, 2016 @11:18AM (#13159159)
This is true for the first few years, but aging batteries can cause problems. My phone is in a situation where under higher power draws (GPS + navigation) it will simply die when the battery falls to 25%. It's been doing this pretty reliably for a month or 2.
Re:Why Google Pixel lags 10x more than Moto Z by digi_owl on Monday December 12, 2016 @08:35AM (#13157905)
I have noticed this with a cheap Window tablet i acquired recently. Left alone it will eventually hibernate, something my Android tablets have never attempted. Similarly, when it goes below 4% battery it will basically force a hibernate.

That said, all mobile devices, laptops included, have a "force shutdown" option activated by holding the power button for x seconds.

Re:Why Google Pixel lags 10x more than Moto Z by pvg on Monday December 12, 2016 @12:51PM (#13160059)
In the 'computer is a phone' perspective there is no sudden power loss unless the user yanks the battery out of the back.

Or the battery is a couple of years old. Or the user lives someplace where it's cold outside.

Re:Why Google Pixel lags 10x more than Moto Z by tempestn on Monday December 12, 2016 @04:51PM (#13162267)
Neither of those should cause a sudden power loss. Even if your battery rapidly depletes, the phone will still shut itself down properly before it loses power.
Re:Why Google Pixel lags 10x more than Moto Z by pvg on Monday December 12, 2016 @06:30PM (#13163098)
It shouldn't yet sometimes it does.