LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Don’t want Shutdown or Reboot (https://www.linuxquestions.org/questions/linux-newbie-8/don%92t-want-shutdown-or-reboot-4175710232/)

SlowCoder 04-04-2022 07:22 PM

A lot has been discussed about how stable Linux is over long uptimes. 100% agree with just about everything said.

But the same cannot always be said for the apps, web browsers and document viewers, e.g. for your PDFs. Memory leaks are a thing in many applications that run on any OS (Win, Linux, Mac, etc.). (It should be noted that this is not an OS issue.) Browsers in general have a bad reputation for this, even though they've improved drastically over the years, and it should be habit to restart your apps periodically.

ondoho 04-05-2022 01:41 AM

Quote:

Originally Posted by SlowCoder (Post 6344026)
it should be habit to restart your apps periodically.

So true.
Consider laptops sleeping, some people probably leave their browser open for months on end... and wonder why it gets bogged down.

subscrive 04-06-2022 06:45 AM

Quote:

Originally Posted by ondoho (Post 6344057)
So true.
Consider laptops sleeping, some people probably leave their browser open for months on end... and wonder why it gets bogged down.

Why are opensource browsers viewed differently than opensource linux/OS?
Does it show that opensource works only for OS, but not other smaller and less complex apps?

If opensource OS can work fine for months together without restart, then whats wrong in expecting similar / same from opensource browser?

hazel 04-06-2022 07:04 AM

It isn't really a parallel. When you run Linux continuously, the only things actually running most of the time are the kernel and some background daemons. The Linux kernel is extremely well designed and the daemons are relatively simple programs. Browsers have to deal with a multiplicity of sites that are heavy with javascript. They are very complex programs and leak memory like sieves.

computersavvy 04-06-2022 06:34 PM

The OS runs the machine and manages the hardware.
The app OTOH runs on top of the OS and uses the features provided by the OS to do the apps job.

While the OS is designed to run 24/7/365 (and on servers often may) the app does not have the same quality control, security perusal, and reliability built in. Thus the app may have unintended faults that eventually can cause a system to fail (memory leaks are an example already given) and restarting the app minimizes these problems that accumulate over time.

Periodic restarts are usually a good thing.

Open source software is always a good thing since anyone can view and verify or modify the code to suit their needs. The ability to view the code means any built-in malware would be identified and outed quickly. Inefficient code can be identified and tweaked for better efficiency as well.

These features of open source apply for both the OS and the apps.

Crippled 04-06-2022 11:39 PM

Quote:

Originally Posted by Zorro007 (Post 6342927)
I am a student and I have 10 to 12 tabs open on chrome, 8 PDFs open on Sumatra PDF in tabbed manner, some folders open to access my notes and PDFs; always open!!!!!

But you know how Windows OS works, frequent updates and shutdown reboot blah blah blah. Even I keep my system always in hibernation. Now I have done some tweaks to postpone updates but still some processes consume RAM CPU and even my Internet Data.

So I will switch to linux but based on most linux users and forums and websites, Linux is not good at Hibernation and Suspend stuff. But I want to use my Linux with all the files open for months without Shutdown and Reboot. There are issues with Suspend what I have seen online or Hibernation. So how can I use my Linux even if it gets shutdown or reboot and I will resume my work from where I left.

Is it fine to use Linux without update, no Shutdown, no Reboot for months??!!!! Only suspend or hibernation !!
You can recommend any stable and reliable distro for a newbie!!

I don't know which desktop environment you are using, but if you are using Xfce like I am you can put the check in the box and leave it checked "Save session for future logins" and everything will be saved when you shut it down and when you boot up you will find everything is as it was when you shut it down.

ondoho 04-07-2022 12:32 AM

^ I prefer to hibernate. Energy consumption of the machine is the same as when shut off, and I don't even have to save documents beforehand.


All times are GMT -5. The time now is 02:23 PM.