News for hackers. Stuff that matters.
Re:I booted Linux 292,612 times by DerekBickerton on Wednesday June 14, 2023 @11:16AM (#36327252)
Before clicking I thought someone kept note of how many times Linux booted in regard to their computing habits, and not testing software. I know for me I boot roughly 3 times a day into different machines, do my work, shutdown, then rinse & repeat.

Then you have those types who put their machine into hibernate/sleep with 100+ Chrome tabs open and never do a full boot ritual. Boggles my mind that people do that.

Re:I booted Linux 292,612 times by coldtea on Wednesday June 14, 2023 @11:37AM (#36327568)
>Then you have those types who put their machine into hibernate/sleep with 100+ Chrome tabs open and never do a full boot ritual. Boggles my mind that people do that.

If the OS and hardware drivers properly support sleep, you almost never need to do otherwise (except to install a new kernel driver or similar).

In macOS for example it hasn't been the case that you need reboot in your regular OS use for over 10+ years.

The "100+ Chrome tabs" or whatever mean nothing. They're paged out when not directly viewed anyway, and if you close just Chrome (not reboot the OS) the memory will be freed in any case...

Re:I booted Linux 292,612 times by moron4hire on Wednesday June 14, 2023 @01:34PM (#36329441)
> If the OS and hardware drivers properly support sleep...

That's like the biggest of big IFs.

Re:I booted Linux 292,612 times by tom_ on Wednesday June 14, 2023 @05:16PM (#36332785)
I've found sleep very reliable on macOS, and both sleep and hibernate reliable on Windows.

I once had my work PC unhibernate and not pop up the login box. The computer appeared to be running normally otherwise; I just couldn't log in, and I had to tap the power button to shut it down. This stuck in my mind due to its rarity.

Can't remember ever having a serious issue on macOS. A couple of my programs sometimes don't survive the sleep/wake cycle, but it's intermittent, and I'm always in the middle of something else when it happens. I've never lost any meaningful work.

Re:I booted Linux 292,612 times by andrekandre on Wednesday June 14, 2023 @06:27PM (#36333667)

  > Can't remember ever having a serious issue on macOS.
macos is fine for the most part, but there are some edge cases, such as some sketchy corporate required "security software" that eats up kernel memory or cpu for some unknown reason, a reboot can fix performance issues there

also if you are a dev and apps (like xcode, android studio etc) fill your drive with cache files* or have weird background daemons that eat up cpu, at the least a logout/login (or a reboot) can fix some of those eierd things

you could manually delete them without a reboot but ymmv

Re:I booted Linux 292,612 times by tom_ on Saturday June 17, 2023 @03:59PM (#36373980)
Indeed, and I've found the same myself - my comment was about the reliability of the OS sleep functionality, and deliberately says nothing about the wisdom of never rebooting!

I have actually found both Windows and macOS generally pretty good if you leave them running for weeks at a time, but it's one of those things that's best done only if you really need it (and can accept a non-zero chance of something going wrong). They're not so very good that I'd actually recommend doing it routinely. A reboot every 1 or 2 weeks massively reduces the chance of weird stuff happening.

Re:I booted Linux 292,612 times by aeyes on Wednesday June 14, 2023 @11:22AM (#36327354)
> Boggles my mind that people do that.

:( I only reboot when my machine freezes or when updates require a reboot. I did a lot of on-call in my life and I saved tons of time by leaving everything open exactly as I left it during the day.

  ~> w
  11:19  up 18 days, 17:03, 9 users, load averages: 3.87 2.96 2.39
Re:I booted Linux 292,612 times by ComputerGuru on Wednesday June 14, 2023 @01:22PM (#36329256)
You haven’t properly kept a machine alive until the clock rolls over.

I logged into a firewalled Windows VM on EC2 that’s been running an internal micro service that was acting up and it caught my eye that task manager showed an uptime of 6 days making my mind immediately think it might be a bug caused by the recent reboot or perhaps the update that triggered it.

It turns out no reboot had taken place and in fact, the uptime counter had merely rolled over - and not for the first time! Bug was unrelated to the machine and it’s still (afaik) ticking merrily away.

(Our `uptime` tool for Windows [0] reported the actual time the machine was up correctly.)

[0]: https://neosmart.net/uptime/

Re:I booted Linux 292,612 times by exikyut on Wednesday June 14, 2023 @06:33PM (#36333732)
Okay, what was the actual uptime? :) (:E)
Re:I booted Linux 292,612 times by ComputerGuru on Thursday June 15, 2023 @12:37PM (#36343093)
Re:I booted Linux 292,612 times by sgerenser on Thursday June 15, 2023 @07:01AM (#36338738)
Microsoft probably never anticipated needing more than a month or two of uptime, since they roll out restart-required updates more frequently than that.
Re:I booted Linux 292,612 times by bbarn on Wednesday June 14, 2023 @11:32AM (#36327487)
I had a developer that I inherited from a previous manager some years ago. Made tons of excuses about his machine, the complexity of the problem, etc. I offered to check his machine out and he refused because it had "private stuff" on it. He had the same machine as the rest of the team, so since he hadn't made a commit in two weeks on a relatively simple problem, refused help from anyone, etc., we ultimately let him go.

When we looked at his PC to see if there was anything useful from the project, his browser had around a thousand tabs open. Probably 80% of them were duplicates of other tabs, linking to the same couple stack overflow and C# sites for really basic stuff. The other 20% were... definitely "private stuff".

Re:I booted Linux 292,612 times by JohnFen on Wednesday June 14, 2023 @11:58AM (#36327880)
> he refused because it had "private stuff" on it.

There's a huge red flag. "Private stuff" (embarrassing or otherwise) shouldn't be on company machines in the first place.

Re:I booted Linux 292,612 times by dijit on Wednesday June 14, 2023 @01:04PM (#36328979)
I agree completely.

However if anyone touches my computer: don't you dare f*%king touch my private key.

(ditto for my browsers sessions database, google cloud credentials directory etc;)

I'm paranoid about it, but not enough to buy a yubikey, apparently.

Re:I booted Linux 292,612 times by JohnFen on Wednesday June 14, 2023 @01:35PM (#36329463)
I'm unusually strict about maintaining a separation between work and personal (for instance, I would never allow my personal smartphone to connect to my employer's WiFi), so I wouldn't use personal keys on a work machine at all.

But if those keys (or passwords, etc.) are generated for work purposes, I consider them to be as much company property as the machine itself, so I'm no more protective of them than I am of any other sensitive company data.

Re:I booted Linux 292,612 times by dijit on Wednesday June 14, 2023 @01:38PM (#36329504)
Interesting thought.

How do you feel about giving your colleague your password?

My personal opinion is that I can hold someone legally culpable if their account does something like leak financial information; you have a professional responsibility to secure your account from absolutely everyone.

Administrators acting on your account must of course be heavily logged and audited, which is the case.

Re:I booted Linux 292,612 times by JohnFen on Wednesday June 14, 2023 @01:46PM (#36329633)
> How do you feel about giving your colleague your password?

I usually don't, mostly just out of good security habits, but also because most employers specifically prohibit doing that.

Almost always, your colleague can be given his own access to whatever the password is for anyway. If that's not possible, then I'll share the password and change it immediately after my colleague doesn't need access anymore.

> you have a professional responsibility to secure your account from absolutely everyone.

I agree -- that's part of treating credentials the same way as all other sensitive company data. But it's still my employer's data, not mine.

If I quit the company or if my supervisor wants to see the contents of my machine, I'm fine with that. The machine and everything on it belongs to the company anyway.

Re:I booted Linux 292,612 times by StillBored on Wednesday June 14, 2023 @02:28PM (#36330379)
Isn't this largely the point of company directory services? The machines/routers/applications/etc are all doing their authentication against the directory service, and permissions are granted and revoked there. Its a large part of running a company with more than a couple employees because when someone leaves you don't need to run around changing passwords and wondering if they still have access to the AWS account to spin stuff up, or punch through the VPN. The account in the directory service is just deactivated and with it all access.

By default this should be what is happening on all but the most ephemeral of machines/testing platforms/etc. And even then if its a formal testing system it should probably be integrated too.

Directory service integration BTW is the one feature that clearly delineates enterprise products from the rest.

Re:I booted Linux 292,612 times by dijit on Wednesday June 14, 2023 @01:50PM (#36329702)
Ok, but your private key, session tokens and CLI access tokens (kube configs, gcloud etc;) are your password in those situations.

They tie to your identity, thus you must not treat them the same as company secrets, they are professional personal secrets which should not be disclosed or allowed to fall into anyone elses hands (less they be revoked and cycled).

It's not just good security posture it could affect your career quite badly or lead to legal issues.

Re:I booted Linux 292,612 times by JohnFen on Wednesday June 14, 2023 @01:52PM (#36329746)
I agree. I don't think I've said anything counter to that (or perhaps I wasn't being clear?)

> thus you must not treat them the same as company secrets, they are professional personal secrets

They are company secrets that are tied to my identity. The company owns those secrets, not me. Just like my keycard to get into the building.

Re:I booted Linux 292,612 times by dijit on Wednesday June 14, 2023 @01:55PM (#36329808)
> I agree. I don't think I've said anything counter to that (or perhaps I wasn't being clear?)

I think given the context of the thread (don't touch my secrets), saying that you don't have anything you would consider confidential towards your employer or colleagues is a direct contradiction to what I stated.

That's why I'm "arguing" because my employer/colleagues should not have access to my private key, ever.

Re:I booted Linux 292,612 times by JohnFen on Wednesday June 14, 2023 @02:12PM (#36330082)
Ah, OK. Then we do disagree to an extent.

There are several very legitimate times when my employer needs to have access to my keys. If I'm leaving the company, for an obvious instance.

But my core point is that such keys/passwords aren't really mine, they're the company's and in the end, the company gets to decide what I'm to do with them.

I think the building access keycard is a perfect analogy. I'd never let anyone borrow mine on my own volition, but if the company wants to retrieve it from me, that's their prerogative. It's theirs, after all.

Re:I booted Linux 292,612 times by brazzledazzle on Wednesday June 14, 2023 @03:28PM (#36331273)
If an employer needs someone’s particular keys something probably went wrong or there’s bad processes in place. But that aside I think the default course of action should be to aggressively guard your secrets and tokens since they represent you. Not as personal or private property but to keep someone (be it a fellow employee or a 3rd party attacker) from impersonating you without authorization.

There are exceptions but the circumstances where an employer would need to retrieve my keys without my assistance are extremely rare and in those instances it’s unlikely I’d still be an employee anyway.

Re:I booted Linux 292,612 times by dijit on Wednesday June 14, 2023 @03:50PM (#36331594)
We disagree.

The handing of the keycard is necessary to ensure it's destroyed and can't be used as a "proof" you work somewhere (most access cards these days have your name, face and the company logo printed on the front).

The keycard will be removed from the access list to the building even when it's destroyed, they're not considered reusable by most companies.

Your private key is not reusable, it should be destroyed and revoked from all system when you leave a company.

Re:I booted Linux 292,612 times by lmm on Wednesday June 14, 2023 @05:33PM (#36333060)
We could destroy the keycard with both parties present, that seems safest. I don't mind turning in a private key permanently and getting a receipt at the time, but it needs to be very clear that it's no longer my responsibility.
Re:I booted Linux 292,612 times by brazzledazzle on Wednesday June 14, 2023 @09:44PM (#36335408)
I’m not clear how we’re in disagreement here since I agree with this. When I say your keys/creds should be guarded I mean while they’re still valid.
Re:I booted Linux 292,612 times by dijit on Thursday June 15, 2023 @02:18AM (#36337037)
i replied to you and not the parent by accident. sorry.
Re:I booted Linux 292,612 times by brazzledazzle on Thursday June 15, 2023 @06:01PM (#36347237)
No worries!
Re:I booted Linux 292,612 times by JohnFen on Wednesday June 14, 2023 @04:01PM (#36331747)
> but to keep someone (be it a fellow employee or a 3rd party attacker) from impersonating you without authorization.

Aside from a third party attacker (which is well-covered by my normal practices), that's a threat model that I'm personally not worried about at all, really. In part because I've never seen or heard of that happening and in part because if it did, I am confident that there are enough records to be able to prove it.

Re:I booted Linux 292,612 times by brazzledazzle on Wednesday June 14, 2023 @09:53PM (#36335468)
Internal abuse and attacks aren’t as rare as they should be. You’d be amazed what someone will do to risk their job or even career on impulse or poorly considered risks.
Re:I booted Linux 292,612 times by chucksmash on Wednesday June 14, 2023 @06:48PM (#36333916)
> If I quit the company or if my supervisor wants to see the contents of my machine, I'm fine with that. The machine and everything on it belongs to the company anyway.

I'm fine with that, but I still will not share my passwords. I'd be happy to reset the passwords for them if they can't access the data by other means, but as another commenter pointed out, the fact that anything needs to be recovered from my^H^H not my laptop indicates mistakes were made.

Re:I booted Linux 292,612 times by lostlogin on Wednesday June 14, 2023 @01:35PM (#36329457)
> However if anyone touches my computer: don't you dare f*%king touch my private key.

Touch the computer, sure, but please don’t touch the screen with your filthy grease fingers.

Re:I booted Linux 292,612 times by mdpye on Wednesday June 14, 2023 @04:46PM (#36332394)
My work laptop has a touchscreen. I've never used it, but other people use it by accident fairly often. Usually only once each though, the look of shock is sometimes even worth the fingerprint :D
Re:I booted Linux 292,612 times by chimprich on Thursday June 15, 2023 @01:33AM (#36336781)
I've never understood people who do this. You can point at the screen, tap with a pen, take the mouse or keyboard and move the cursor, etc. but surely it's bad manners to splodge your finger on someone's screen.
Re:I booted Linux 292,612 times by hinkley on Wednesday June 14, 2023 @12:10PM (#36328073)
I’m at the other extreme of “private stuff”. Nothing work related should live on my work machine. It should all be pushed to git or dumped in the wiki (personal pages if nothing else).

On one of my largest projects the IT dept made bulk orders for hardware and doled them out to new hires. 18 months into our new project someone’s yard drive died.

Everyone acted like his dog died. I said no problem let’s go through the onboarding docs. The longest step by far was that the company mandated Whole Disk Encryption but IT hadn’t put it in their old inventory yet. So that was 2/3 of setup time. We found some issues with the docs and fixed them.

Every two to four weeks that summer, someone else’s drive would go. You see, we got all of these machines from the same production run. So the hard drives came from the same production run, which was apparently faulty. The process got a little faster as we went. By the end of the summer it was my turn, and people still looked at me like I needed condolences. I got a faster machine for a few hours worth of work. I’m not sad. All my stuff was in the network already. I lost a couple hours’ of work, tops.

Re:I booted Linux 292,612 times by teachrdan on Wednesday June 14, 2023 @12:51PM (#36328752)
> Nothing work related should live on my work machine.

I thought this was a typo at first. Love this as an engineering koan.

Re:I booted Linux 292,612 times by noSyncCloud on Wednesday June 14, 2023 @03:51PM (#36331601)
And the corollary – nothing personal should be on your work machine, either
Re:I booted Linux 292,612 times by canucker2016 on Wednesday June 14, 2023 @06:08PM (#36333453)
"Nothing work related should live ONLY on my work machine." is the intent.
Re:I booted Linux 292,612 times by opello on Wednesday June 14, 2023 @01:19PM (#36329230)
This is the best way to reduce bus factor and not fall behind documenting key details!
Re:I booted Linux 292,612 times by jbm on Thursday June 15, 2023 @03:58AM (#36337618)
Apologies for the pedantry but reducing bus factor is a bad thing.

3 -> 2 means you now only need two people to be hit by buses to ruin your project.

Re:I booted Linux 292,612 times by greiskul on Wednesday June 14, 2023 @07:53PM (#36334561)
Any machine in a company needs to be able to be unplugged and thrown out of a window, without leading to significant data loss, only the inconvenience of the price of a new machine and setup time.

There are very few machines in the world that are actually mission critical, and you might not be able to do that (although for them, you can probably switch components with it still running). Anybody else, you are just betting your company on the lack of fires, hardware failure, etc.

Re:I booted Linux 292,612 times by spacephysics on Wednesday June 14, 2023 @08:13PM (#36334728)
My company laptop I don’t do anything I wouldn’t be OK with my manager or IT seeing. Even something as simple as a recipe lookup I do on my phone or personal laptop.

With today’s software for managing corporate machines, and corporate VPN with network security and firewalls abound, anything and everything can be seen.

I have a joke Wi-Fi name that I’ve even considered changing (or at least create a guest network) just to be safe. It’s likely overboard, but I like the idea of just mailing my laptop if I change companies, and no worries at all

Re:I booted Linux 292,612 times by bbarn on Wednesday June 14, 2023 @11:49PM (#36336160)
Coincidentally I just got a new work machine this week. The IT support staff replacing it scheduled an hour of time to transfer files, set up apps, etc. with me. I was done in 5 minutes. Once I logged in, logged into my cloud services, and verified my faulty port problem with my dock was resolved with new hardware, I was done and as productive in a few minutes as I was before. Install a few tools, copy my scripts from the cloud, make a new key pair for SCM, that's it.
Re:I booted Linux 292,612 times by sureglymop on Wednesday June 14, 2023 @12:29PM (#36328372)
He was let go after two weeks? No confrontation nothing?

Sounds very american. In European working culture if you don't show up for two weeks people will be worried that something happened to you and try to work it out with you. This type of all or nothing reaction is a bit sporadic imo.

Re:I booted Linux 292,612 times by mikestew on Wednesday June 14, 2023 @12:49PM (#36328720)
Sounds very american.

Yeah, it's not like that part of the story was condensed and might have left out a bunch of details that weren't important to the story. So let's give OP a hard time and make judgements about a situation for which we have not even the slightest bit of context.

Re:I booted Linux 292,612 times by sureglymop on Wednesday June 14, 2023 @02:37PM (#36330522)
Oh absolutely, you're right. I am saying that despite whatever may have happened, two weeks is very short. I feel like it would be at least a month here regardless.
Re:I booted Linux 292,612 times by Uvix on Wednesday June 14, 2023 @09:36PM (#36335342)
It's not that the person didn't show up for two weeks, though; they showed up but refused to actually do any work.
Re:I booted Linux 292,612 times by bbarn on Wednesday June 14, 2023 @11:42PM (#36336115)
For context, I was brought in with the knowledge he hadn't done anything meaningful since being hired some time before my arrival, and we did reach out and offer help or ask if he needed anything, which he refused, somewhat angrily.
Re:I booted Linux 292,612 times by RandallBrown on Wednesday June 14, 2023 @12:50PM (#36328743)
He was let go after two weeks of not doing any work, despite the manager offering to help him.
Re:I booted Linux 292,612 times by sowbug on Wednesday June 14, 2023 @09:00PM (#36335073)
You might have meant to use a word other than "sporadic." That word describes a recurring event that happens at unpredictable intervals, such as snow in a normally hot desert, or a Linux crash caused by a race condition. Other words that fit the sentence better are "unusual," "unexpected," "unjustified," "inappropriate," "surprising," "extreme," "abrupt," or "out of the blue."

(For what it's worth, I'm American, and I disagree with your assessment. We don't know how long the person was given to make progress, and we don't know what was communicated. To conclude that a two-week period without a commit represents the entire period between the start of the poor performance and the termination is, well, a bit out of the blue.)

Re:I booted Linux 292,612 times by bbarn on Wednesday June 14, 2023 @11:46PM (#36336140)
I was the final two weeks of a long period of zero productivity, despite many offers of help and asking if he understood, needed help, etc. I never enjoy firing someone, even if they are downright awful or mean, and do my best to avoid it. My own involvement was late in the stage, and the thousand or so tabs that were left open I'm sure weren't 2 weeks worth of effort.

When I was hired I was told he was a problematic hire, that hadn't produced anything for long before my arrival. It was basically "We already know we're going to probably have to let him go but if you want to try to work around it, be my guest". I did try to go in with no judgments, as I always do, but he refused help, and refused to even let anyone look over his shoulder and find why this task was taking an order of magnitude too long.

Re:I booted Linux 292,612 times by trashburger on Wednesday June 14, 2023 @11:26AM (#36327407)
> Then you have those types who put their machine into hibernate with 100+ Chrome tabs open and never do a full boot ritual. Boggles my mind that people do that.

Hey, I'm that guy (although I put it to sleep instead)! It honestly works really well and is in stark contrast to how Linux and sleep mode interacted just ~10 years ago. It's amazing for keeping your workspace intact.

(FWIW, I also don't reboot or shutdown my desktop where it acts as a mainframe for my "dumb" laptop.)

Re:I booted Linux 292,612 times by ryanjshaw on Wednesday June 14, 2023 @11:33AM (#36327512)
I used to shutdown regularly, then the power situation here in South Africa for so bad that we'd regularly have about 3hours of power between interruptions.

So I decided to re-enable hibernation support on Windows for the first time in 10 years... And surprisingly it works absolutely flawlessly. Even on my 12yr old hardware, even if I'm running a few virtual machines. I honestly haven't seen any reason to reboot other than updates.

Re:I booted Linux 292,612 times by pessimizer on Wednesday June 14, 2023 @01:15PM (#36329145)
This thread is like reading that someone is shocked that other people don't burn their beds every morning after they wake up.
Re:I booted Linux 292,612 times by lelanthran on Wednesday June 14, 2023 @03:34PM (#36331359)
> I used to shutdown regularly, then the power situation here in South Africa got so bad that we'd regularly have about 3 hours of power between interruptions.

I'm in SA too, and I used to have 100s of days uptime (one even over a year and a half) ... until the regular blackouts.

Had to stop using a desktop, I've resigned myself to using a laptop, purely so that I don't have to boot the thing all the time and lose my context.

Re:I booted Linux 292,612 times by rmbyrro on Wednesday June 14, 2023 @11:35AM (#36327529)
I get anxious just to think that restoring from sleep/hibernation may fail and I lose all my workspace state...

If there was no boot failure, nor the need to reboot after some upgrade, I'd never, ever reboot my system.

Re:I booted Linux 292,612 times by sieabahlpark on Wednesday June 14, 2023 @11:21AM (#36327343)
I just have it running 24/7 and never restart for weeks. I don't even have the 100 tab problem, I just like having the immediate availability without waiting for startup.
Re:I booted Linux 292,612 times by 5e92cb50239222b on Wednesday June 14, 2023 @12:06PM (#36327997)
Unless you're on solar, does wasting electricity not bother you? I used to seed a lot of stuff for years (with typical uptime measured in months), but the CO2 impact, however tiny it is in the grand scheme of things, does not seem to worth it anymore.
Re:I booted Linux 292,612 times by pessimizer on Wednesday June 14, 2023 @01:16PM (#36329161)
If you're shutdown or hibernating, is the power draw anything compared to a lightbulb?
Re:I booted Linux 292,612 times by Hikikomori on Wednesday June 14, 2023 @02:32PM (#36330463)
My desktop uses 2w in sleep mode. Likely less if i disable the motherboard RGB.
Re:I booted Linux 292,612 times by vbezhenar on Wednesday June 14, 2023 @12:08PM (#36328052)
I think that there are two types of people. One set of people (I guess, relatively small) don't trust software and prefer to reboot OS and even periodically reinstall it to keep it "uncluttered". Another set of people prefer to run and repair it forever.

I'm from the first set of people and the only reason I stopped shutting down my macbook is because I'm now keeping its lid closed (connected to display) and there's no way to turn it on without opening a lid which is very inconvenient. I still reboot it every few days, just in case.

Re:I booted Linux 292,612 times by ComputerGuru on Wednesday June 14, 2023 @01:26PM (#36329312)
I’m in the second group but for the reason you attribute to the first. I never trust that my Windows machine - currently working - will reboot successfully and into the same working condition between OS update regressions, driver issues, etc.
Re:I booted Linux 292,612 times by tasuki on Wednesday June 14, 2023 @12:10PM (#36328084)
> Boggles my mind that people do that.

Why?

It boggles my mind that you'd reboot needlessly. My uptime is usually in the hundreds of days.

Sleep is good: I just close the lid. Next time I open the lid it immediately picks up where I left off. Why on earth would you want any other behaviour?

Re:I booted Linux 292,612 times by rolandog on Wednesday June 14, 2023 @12:37PM (#36328512)
Security-wise: encryption at rest? In high security scenarios you may be required to shutdown so you're forcing "attackers" to go through several layers: motherboard password, disk password, encryption password, OS user password + 2FA, etc.
Re:I booted Linux 292,612 times by jameson71 on Wednesday June 14, 2023 @12:31PM (#36328409)
Security patching?
Re:I booted Linux 292,612 times by cannonpalms on Wednesday June 14, 2023 @12:43PM (#36328626)
Can all be done online, no?
Re:I booted Linux 292,612 times by jameson71 on Friday June 23, 2023 @11:08PM (#36455092)
Patching the kernel requires rebooting in Linux. Kernel and many other things require rebooting on Windows.
Re:I booted Linux 292,612 times by pessimizer on Wednesday June 14, 2023 @01:13PM (#36329125)
What do you need to reboot to patch other than the kernel? I just restart things.
Re:I booted Linux 292,612 times by rthnbgrredf on Thursday June 15, 2023 @03:52AM (#36337577)
Kernel is enough attack surface to require reboot, can't ignore it.
Re:I booted Linux 292,612 times by 2b3a51 on Wednesday June 14, 2023 @01:19PM (#36329217)
Full drive encryption on Linux.

I close down my laptop when I'm moving around or when I leave it somewhere while I'm in another part of the building.

Re:I booted Linux 292,612 times by JohnFen on Wednesday June 14, 2023 @01:41PM (#36329563)
On my personal machines? I don't shut them down or reboot very often.

At work, however, I have to use Windows. In that case, I shut it down at the end of every workday, in part because that prevents weird issues Windows tends to develop when running too long.

Mostly, though, it's because of those damned forced updates. Since I can't trust Windows to not reboot itself at any random point in time, having the habit of shutting down at the end of the day at least ensures that I won't accidentally lose my state overnight or over the weekend.

Re:I booted Linux 292,612 times by tom_ on Wednesday June 14, 2023 @05:22PM (#36332885)
How to stop Windows installing updates behind your back: https://news.ycombinator.com/item?id=18157968

If you don't/won't/can't use the group policy editor, I got a lot of mileage out of hibernating the PC and powering it off at the mains. You can't leave it running something overnight, but you can at least quickly get back to exactly where you left things the previous day.

(Powering it off at the mains ensures that even if you have a device connected that could wake the PC up - thus putting your computer in a state where WIndows Update can reboot it - it can't. You can turn this feature off on a per-device basis with powercfg, but then one day you'll plug something new in and leave it plugged in and it'll wake the PC up while you're away and Windows Update will do its thing.)

Re:I booted Linux 292,612 times by leptons on Thursday June 15, 2023 @12:08AM (#36336279)
> in part because that prevents weird issues Windows tends to develop when running too long

What are you using Windows Vista? I run about a dozen windows machines, half of them are VMs and none of them need to be rebooted regularly. Average uptime is over 40 days, and I only reboot when there's a big update. Windows becoming unstable entirely depends on the 3rd party software you install on it. Don't install crapware, you won't have a crap experience.

Re:I booted Linux 292,612 times by mcculley on Wednesday June 14, 2023 @02:50PM (#36330739)
A long time ago, I had desktops with huge uptimes. The world has changed. I will no longer go that long without a security update. Too much is now passing through my machine.
Re:I booted Linux 292,612 times by tasuki on Thursday June 15, 2023 @08:46AM (#36339679)
None of my machines were ever hacked and I regularly run a year old kernel. I guess I'm an uninteresting target.
Re:I booted Linux 292,612 times by mcculley on Thursday June 15, 2023 @01:17PM (#36343713)
(As far as you know, none of your machines were ever hacked.)

Your luck is not good security policy. When I was getting started with Linux in 1992 and only intermittently connected to the Internet via dial-up, I celebrated long uptimes. Now that I do daily banking and other activities on a machine continuously connected to the Internet, uptimes longer than the interval between kernel security updates is just irresponsible behavior.

I would prefer to not have to reboot. I know that is not the world we live in. The stability of the kernel is no longer the reason to think about uptime.

I don't care that you have nothing of value connected to the Internet. I am objecting to the advice about not rebooting.

Re:I booted Linux 292,612 times by tom_ on Wednesday June 14, 2023 @05:36PM (#36333094)
I reboot most weeks, just to make sure the right stuff happens when I do. (I try to do it in the middle of the day, so there's time to sort out any matters arising.)

A couple of times I've discovered I've forgotten to set stuff to auto-run on login, or things turn out to have lost their settings, or stuff doesn't work for whatever reason - I'd much rather discover this at a time of my own choosing!

Re:I booted Linux 292,612 times by andrewaylett on Wednesday June 14, 2023 @01:48PM (#36329678)
Conversely, it boggles my mind that people think 100+ tabs is a lot. I've got >500 open in Firefox at the moment, they won't go away just because I reboot or upgrade. I'll probably not look at most of them again, but they're not doing any harm just sitting there waiting to be cleaned up.
Re:I booted Linux 292,612 times by db48x on Wednesday June 14, 2023 @05:21PM (#36332875)
That's because in Firefox an open tab that you haven't recently viewed uses no memory.
Re:I booted Linux 292,612 times by eertami on Wednesday June 14, 2023 @02:27PM (#36330355)
Sleep uses almost 0 power and works flawlessly. I'm never going to waste my time, however short, waiting for a machine to boot.
Re:I booted Linux 292,612 times by drbawb on Wednesday June 14, 2023 @02:34PM (#36330475)
>Then you have those types who put their machine into hibernate/sleep with 100+ Chrome tabs open and never do a full boot ritual.

I would never suspend to RAM or disk, far too error-prone in my experience. (Plus serializing out 128GiB of RAM is not great.) I just leave my machine running "all the time." My most recently retired disks (WD Black 6TB) have 309 power cycles with ~57,382 power-on hours. Seems like that works out to rebooting a little less than once per week. That tracks: I usually do kernel updates on the weekend, just in case the system doesn't want to reboot unattended.

Re:I booted Linux 292,612 times by bregma on Wednesday June 14, 2023 @03:44PM (#36331509)
> Boggles my mind that people do that.

    $ uptime
     15:39:13 up 359 days,  2:02, 16 users,  load average: 0.09, 0.08, 0.15
16 users is 16 tmux sessions, all me doing different tasks.
Re:I booted Linux 292,612 times by exikyut on Wednesday June 14, 2023 @06:40PM (#36333830)
* * *
Re:I booted Linux 292,612 times by E39M5S62 on Thursday June 15, 2023 @12:56AM (#36336564)
That article was written ~5 years ago. The parent comment has ~1 year of uptime. What makes you think they don't have a kernel new enough to report PSI stats?
Re:I booted Linux 292,612 times by kelnos on Thursday June 15, 2023 @05:16AM (#36338061)
Why would I ever reboot my laptop without a need to? I only reboot when there's a kernel update, or if I'm doing something where the laptop might get lost or stolen (since powering off will lock the disk encryption).