Related
I have had an issue in the past but thought it was random - but now I am not so sure.
I consider a ROM good and stable if I can run it for at least 5 -6 days witout a single soft reset. Often I never get this far as I have flashed a new rom or installed something that needed a soft reset.
However when I do, I have noticed that after around 6 days, there will come a point where I will just lose connection to the network - not just data - vocie as well.
switching on flight mode and then back, or changing between 2g and 3g makes no difference. A soft reset clears the issue however.
This morning my phone worked as I made a call (6.5 days since last soft reset). Then I got in the car and noticed I had no reception - only a soft reset cleaed it eventually.
Can anyone think of a reason for this - is there any built in time function that might be within the sys (currently using 28244 but I am sure I have seen this before), or a software package that could cause this?
Just wondered if anyone had seen this - always seems to be after a long time with no resets, and memory use seems fine (plenty of free memory).
Cheers
I don't know what causes it, but I do agree that the best way to test a rom's stability is to see what it does w/o resetting. My record is 5 days; usually, at about 5 days, I just can't help myself and have to reset to try a registry tweak or to flash. I think it's pretty funny whenever a new build is released, and 20 min later someone posts that it's 'the most stable build ever!!!'
There are some things that occur on my device that are fixed by running Hibernate (I have a shortcut that does it with dotfred's task manager). That might work with your network problem. Also, if you have SK Tools, you could try the 'compact heaps' command. I don't know why, but the capacitative pad on my fuze as well as the buttons (I use AE button) stop working properly from time-to-time. Usually, running compact heaps (takes just a second) will fix the issue. Clean Ram does nothing for me, but I guess it's also worth a shot.
Anyway, going 6-7 days w/o a reset is pretty damn good, imo. A reset is going to be necessary sooner or later. I remember using the stock rom on my fuze (for a month or so), and that damn thing locked up a half dozen or so times per day, it sucked so bad. I also remember when I got my first winmo device (an asus mypal), I didn't know about soft resetting, and would go months at a time without doing it. One time, I was playing a game (curse of the pharoah, lol), and the device locked up on me and was completely unresponsive, so I had to hard reset because I'd never noticed the little hole on the side of the device.
I was actually attempting to reach 7 days, at which point I was going to proudly declare it a 'keeper'.
I agree that 5 days is a good benchmark standard actually, especially when you consider most of these are from essentially beta builds.
I still think this is one of the most stable builds I have used on a day to day basis.
I shall investigate the compact heaps option you mention - but where is the hibernate option on the Fdc task manager (or do you mean suspend?) as I already have that installed?
Cheers
C.
If you check the 'about' tab in dotfred's, it has a bunch of command lines you can use in shortcuts to do some pretty cool stuff. One of them is to send a hibernate call. These are the two shortcuts you need:
Hibernate:
Code:
1#\Windows\dF_TaskMgr.exe /hibernate
Compact Heaps (sk tools):
Code:
1#\windows\skstart.exe #HCS?\Windows\SKTools.exe,-221
You may need to fix the paths and or names of the exe's. You can create the compact heaps shortcut with the shortcut wizard of sk tools as well (main menu under Tools). I've got both of the shortcuts in rom, and I have them set as XTask shortcuts, so they're really easy to access and run. They come in handy from time to time. Sometimes one will clear up some ram, while the other doesn't, and vice-versa.
Well, okay, nothing really about space aliens and robots, but you're here reading, aren't you?
Lots of discussion about pro/con of the EXT4 filesystem, risks to data integrity without journaling (analogous to a transaction log for a database), the disappearance of the reboot option on Bonsai (and maybe other ROMs) because of this, blah blah blah this, blah blah that, and on and on and on.
There is another solution. You can still have the performance of EXT4, without journaling. With much lower risk to your data in case of the battery leaping out of the phone on a whim. And good ol' reboot can make a comeback too!
The nirvana is a linux command called 'sync'. Crusty old unix hacks like me will get a twinkle in their eye at the mention of this command.
sync does somesthing very straightforward and simple: It syncs the filesystems. Put another way, it flushes the in-ram buffers out to "disk", syncronizing the actual state of the filesytem with what is stored -- and stale -- in secondary storage (hard discs on the big boys, NVRAM/SD/whatever on phones).
I've been experimenting with this to see if I can improve data integrity while minimally impacting performance. Here's what I've done:
Using GScript Lite, created a simple Superuser script for rebooting that looks like,
sync
sync
sync
/sbin/reboot #Bonsai ROM
Why 3 syncs? Paranoid. Nothing more.
Optionally create a shortcut on the homescreen to invoke this script to easy one-button reboot. I did this a week ago, have been using this to reboot Bonsai 4.0.0 a gazillion (actually, a bazillion, but I'm rounding) times, and have had absolutely no problems at all. Seems to work.
Created a shell script that launches at boot, as superuser, that runs in an infinite loop waking up every 10 seconds to do a sync. No detectable impact on performance that I can see. This is what I'd expect, as there is never more than 10 seconds of filesystem activity sitting "dirty" in the cache, so the sync doesn't usually have much to do (most of the time, nothing).
What does all this mean? Well, it's sort of a "lazy" journaling, and much more efficient. There's still a higher risk of data corruption under uncontrolled loss of power than with journaling, but in my considered opinion its negligible with the usage model/patterns for this particular situation (a smartphone).
FWIW, before I implemented this method for reboot, I like others got FCs on apps randomly after using the 3-finger reboot, simply running reboot directly from a shell prompt, or back on Bonsai 3, using the power-button menu reboot command. With this sync approach, I have not had a single problem -- and I can reboot the phone again easily!
What this means for you
If you're enough of a hack to understand how to implement this stuff yourself, give it a shot (at your own risk!), and let us know how it works out.
For the rest of you, be patient... I'm putting together a package to make it simple to install all this (initially just for the Bonsai ROM, others to follow, maybe), and should have something to test in a day or two. If you're interested in being a tester, PM me. Looking for 10 people.
I'm interested in this as I have been wondering about no_journaling for some time. I think it would help to prove or disprove the theory that no_journaling is causing data corruption. PM sent.
This is very interesting. I'll be watching this - depending on the results, it may be a good option for future versions of SRF.
I think a mod should move this thread over into the Development forum, please?
This sounds interesting. So will this "lazy" journaling put the same or less wear on the nand chip vs journaling being enabled?
If it has the same or similar wear factor as no journaling, as well as no impact on performance. Then this mod is a no brainer IMO.
Does sync only cause a write operation for data that has changed, or simply rewrite the entire buffer to disk each time? I'm sure you can see where I'm going with this...
Sent from my SPH-D700 using XDA App
It's better than nothing, but it still doesn't address battery pulls or phone freezes. It just provides a more graceful shutdown IF you do a clean shutdown.
dwallersv said:
Using GScript Lite, created a simple Superuser script for rebooting that looks like,
sync
sync
sync
/sbin/reboot #Bonsai ROM
Click to expand...
Click to collapse
I tried this on my phone and so far, so good. I am using ACS Frozen Rom 1.1.0 with Twilight 1.1.0. When I downloaded the GScript lite, there was already a script for reboot, I just edited it to add the sync lines. I assume that the #Bonsai ROM is a comment and not needed, so that was omitted. I have rebooted about 10 times (I know...many, many less than a Gazillion) and have not had any issues.
Thank you!
epic4GEE said:
This sounds interesting. So will this "lazy" journaling put the same or less wear on the nand chip vs journaling being enabled?
If it has the same or similar wear factor as no journaling, as well as no impact on performance. Then this mod is a no brainer IMO.
Click to expand...
Click to collapse
In terms of the precise impact on storage, it is indistinguishable from not doing it at all. All this does if change the timing of the writes -- you control it, rather than waiting for the OS to decide to flush the filesystem buffers.
In the case of a reboot, this makes a ginormous difference, because anything in cache that hasn't been flushed is lost if the system doesn't sync before quitting back into the bootloader.
Sent from my mind using telepathitalk
styles420 said:
Does sync only cause a write operation for data that has changed, or simply rewrite the entire buffer to disk each time? I'm sure you can see where I'm going with this...
Click to expand...
Click to collapse
only dirty blocks.
sync should not cause anything to be written that wouldn't be eventually written anyway, when the kernel decides it is either idle enough to perform the deferred task, or cache "fullness" requires it to make room for newer data by flushing older stuff that hadn't been written yet.
Sent from my mind using telepathitalk
poit said:
It's better than nothing, but it still doesn't address battery pulls or phone freezes. It just provides a more graceful shutdown IF you do a clean shutdown.
Click to expand...
Click to collapse
True on the reboot mod.
On the monitor, though, it can make a big difference in the case of catastrophe. The FS cache is never more than 10 seconds out of sync with the underlying NV secondary storage. Depending on the usage model, this may be enough to reduce risk significantly.
The interval, of course, is configurable. The monitor could sync every second, reducing risk further. Given the speed of the processor in the 4G, and the low overhead hitting sync when there's nothing to flush, the overhead at a one sec interval may be trivial.
I haven't progressed far enough with this nascent idea to have characterized such questions. It's on the work order, though.
Also, my rough experimentation with this is all via shell scripting, which has a lot of unnecessary overhead. Coding this into an Android service, calling the linux sync(2) system call directly will be much more efficient.
Sent from my mind using telepathitalk
hotwired34 said:
I assume that the #Bonsai ROM is a comment and not needed, so that was omitted.
Click to expand...
Click to collapse
Yes, just a comment... across different ROMs I've found that devs mess around with the location, and linking, of the reboot command.
I have rebooted about 10 times (I know...many, many less than a Gazillion) and have not had any issues.
Thank you!
Click to expand...
Click to collapse
let us know when you get to a gazillion... our at least to a bazillion.
Oh, and anything with aliens or robots that comes up as well
Sent from my mind using telepathitalk
In this guide I will show you how to speed up Windows 8 Boot time, disabling unnecessary applications
Whats need
-Ccleaner latest version
-PC with Windows 8 :fingers-crossed:
Step 1
-run the program RUN.exe and then we write MSCONFIG and Enter
Step 2
-On the program go to the Services and click Hide all Microsoft services, now stopped some services that not need example: AMD, Google update, Hamachi, utility from manufacturer,Skype updater
Step 3
-Now go to Task Manager, go to startup and disable the unnecessary apps example:Utorrent, apps from manufacturer, Skype, Java
Step 4
-Go to Ccleaner, click Tools and go to Startup and disable apps from Windows-unnecessary, IE-all, Contex menu-all,Scheduled Task.all
Step 5
-Restart the PC and after off and on PC
Boot time
My boot time:
Before: 38 seconds
After: 8 seconds
energymix said:
My boot time:
Before: 38 seconds
After: 8 seconds
Click to expand...
Click to collapse
I find it rather impossible to believe that your windows 8 pc took a whopping 38 seconds to boot.....I may be wrong but I believe that Windows's new system of hibernating the kernel session drastically reduces the boot time to less than 12 seconds.,,38 seconds and 8 seconds sounds like the difference between a windows 7 and windows 8 boot times rather than 2 windows 8 boot times.
mrappbrain said:
I find it rather impossible to believe that your windows 8 pc took a whopping 38 seconds to boot.....I may be wrong but I believe that Windows's new system of hibernating the kernel session drastically reduces the boot time to less than 12 seconds.,,38 seconds and 8 seconds sounds like the difference between a windows 7 and windows 8 boot times rather than 2 windows 8 boot times.
Click to expand...
Click to collapse
I really booted 38-45 seconds because the application is very delayed, but sometimes I booted 8-13 seconds
Yeah... your 38 seconds was a cold boot, your 8 seconds was a hibernation boot. In any case, disabling services and the like doesn't really impact the boot time at all. It may change how long after login before the system becomes responsive, and it can definitely change how much system resources are being used in the background, but the only software ways to reduce the boot time (short of something like hibernation boot) would require removing drivers (as each one of those takes a brief moment to initialize) or using bootloader settings (and most of those are more likely to slow boot times down than speed them up).
GoodDayToDie said:
Yeah... your 38 seconds was a cold boot, your 8 seconds was a hibernation boot. In any case, disabling services and the like doesn't really impact the boot time at all. It may change how long after login before the system becomes responsive, and it can definitely change how much system resources are being used in the background, but the only software ways to reduce the boot time (short of something like hibernation boot) would require removing drivers (as each one of those takes a brief moment to initialize) or using bootloader settings (and most of those are more likely to slow boot times down than speed them up).
Click to expand...
Click to collapse
Exactly.So the name of the guide should be changed to how to impact login times
well even on hibernation boot I need around 30 seconds (but 10 seconds of that contributes to my old BIOS) lol
My new record: 13 seconds. Cold boot. Doesn't get much better than that
Even a layman would know that disabling startup applications can speed up boot time.
Except they don't... Startup apps don't run until the system is already booted, so by definition they cannot impact boot time. On I/O constrained or single-core systems, they make the system essentially unresponsive for some time after bootup, but for something like the Surface RT (4 cores, Flash storage so very wide IO bandwidth) their impact will be minimal.
Hi guys,
I had a question.. My windows 8 used to boot really fast at the beginning on my PC.. But now its taking time.. Almost as much as windows 7 used to take, even during shutdown.. I've actually disabled hibernation function using tune up utilities.. Would this effect booting speed?
Sent from my fingers to your face..!
kishankpadiyar said:
Hi guys,
I had a question.. My windows 8 used to boot really fast at the beginning on my PC.. But now its taking time.. Almost as much as windows 7 used to take, even during shutdown.. I've actually disabled hibernation function using tune up utilities.. Would this effect booting speed?
Sent from my fingers to your face..!
Click to expand...
Click to collapse
How many apps have you installed?
karan128 said:
How many apps have you installed?
Click to expand...
Click to collapse
not much.. 2-3 games and few common apps like vlc, firefox n all those.. no apps from stores..
Disabling Hibernation will not speed up your boot time - quite the opposite, in fact (Win8 likes to do a "hibernation shutdown" where it restarts the computer then immediately enters hibernate, which makes the subsequent bootup very fast). It will have no impact at all on restart time, either (at least, nothing meaningful - possibly a few milliseconds at worst). Hibernate shutdown does indeed take longer (substantially so), but why do you care?
GoodDayToDie said:
Disabling Hibernation will not speed up your boot time - quite the opposite, in fact (Win8 likes to do a "hibernation shutdown" where it restarts the computer then immediately enters hibernate, which makes the subsequent bootup very fast). It will have no impact at all on restart time, either (at least, nothing meaningful - possibly a few milliseconds at worst). Hibernate shutdown does indeed take longer (substantially so), but why do you care?
Click to expand...
Click to collapse
oh okay.. i also wanted to know this.. Sometimes when i keep my system on standby (which i always do), my system wakes up by itself.. then when its not attended for some time it goes to sleep again.. then again in 2 min it repeats.. why is this happening..?
kishankpadiyar said:
oh okay.. i also wanted to know this.. Sometimes when i keep my system on standby (which i always do), my system wakes up by itself.. then when its not attended for some time it goes to sleep again.. then again in 2 min it repeats.. why is this happening..?
Click to expand...
Click to collapse
THis may be happening due to scheduled tasks--
Open cmd and execute this code
powercfg /waketimers
Click to expand...
Click to collapse
see if any task is scheduled to run while pc is on standby..
karan128 said:
THis may be happening due to scheduled tasks--
Open cmd and execute this code see if any task is scheduled to run while pc is on standby..
Click to expand...
Click to collapse
it shows this.. what does it mean..?
PIC: https://www.dropbox.com/s/d3d0cm1ohf5f1hl/cmd.png
kishankpadiyar said:
it shows this.. what does it mean..?
PIC: https://www.dropbox.com/s/d3d0cm1ohf5f1hl/cmd.png
Click to expand...
Click to collapse
Go to "scheduled" task manager and disable that service.(whatever it is, I am not able to see it clearly on my mobile)
Sent from my A9 using xda app-developers app
Windows 8 loads up extremely fast! And I dont think disabling startup apps and services is not necessary, i came across this post, see if it helps you
http://www.computingunleashed.com/speed-up-windows-8-pro.html
my acer S3 ultrabook was using a Seagate 350GB and the boot was super crapy.... I removed the hdd and slot in a Kingston hyper X3 SSD...
my boot time is 7second flat from zero to hero..
best windows OS ever..
my windows surface RT is slowing down a bit after I loaded so many app on it...
This has been driving me nutts and insane.
Windows 8 has the tendency to run all sort of tasks at certain time interval for the sake of Maintenance.
While this is perfectly ok on my desktop with its huge dual core 3 Ghz CPU, the same can not be said about my laptop with I3.
Whenever windows decides to do something, the temperatures spike close to the operational maximum.
So far, I've identified and neturalized some of the following tasks:
Idle maintenance: this is a pain in the ass to disable!
Scheduled maintenance: really annoying, if you happen to be doing something at that time, you're screwed big time (put it at 4 AM, no computer wake up-> took me a while to realize why my laptop started at random times during the night)
The following are things I've discovered by supervising the new task manager
The antivirus apparently decided at completely random times to scan something. I am ok with that (real time protection yada yada yada).
Apparently, some SQL server for windows NT process also starts at random times (no clue what it is and what it does)
Application hosts (network restricted -> I suppose this is some sort of .net Host) also runs at random times, even when PC is idle.
Disk defrag decides it's time to do its job: ofc, at random times,
I can't find any scheduled tasks to disable anymore!
Is this supposed to be the default behavior of windows 8, or is my installation corrupt?
mcosmin222 said:
The antivirus apparently decided at completely random times to scan something. I am ok with that (real time protection yada yada yada).
Apparently, some SQL server for windows NT process also starts at random times (no clue what it is and what it does)
Application hosts (network restricted -> I suppose this is some sort of .net Host) also runs at random times, even when PC is idle.
Disk defrag decides it's time to do its job: ofc, at random times,
I can't find any scheduled tasks to disable anymore!
Is this supposed to be the default behavior of windows 8, or is my installation corrupt?
Click to expand...
Click to collapse
What anti virus are you using because if its anything other than the built in suite then the issue is nothing to do with windows 8 and you should be consulting the software vendor. I dont have a problem with the built in software which only seems to use a significant amount of CPU time when the machine is otherwise idle, otherwise it takes a back seat, its still there but not making a huge difference.
SQL server should not be enabled by default. Its a database software. You can go into control panel>Add remove programs>enable/disable windows features, its in there somewhere. It should also be taking a back seat unless there is an active connection, chances are if you have no idea what it is then you never configured it to even have a port to listen on or a database to manage so it should in theory be doing absolutely nothing.
Application hosts is required, cannot be shut down without causing some problems.
Disk defrag should only run when the system is idle, always has done since vista.
SixSixSevenSeven said:
What anti virus are you using because if its anything other than the built in suite then the issue is nothing to do with windows 8 and you should be consulting the software vendor. I dont have a problem with the built in software which only seems to use a significant amount of CPU time when the machine is otherwise idle, otherwise it takes a back seat, its still there but not making a huge difference.
SQL server should not be enabled by default. Its a database software. You can go into control panel>Add remove programs>enable/disable windows features, its in there somewhere. It should also be taking a back seat unless there is an active connection, chances are if you have no idea what it is then you never configured it to even have a port to listen on or a database to manage so it should in theory be doing absolutely nothing.
Application hosts is required, cannot be shut down without causing some problems.
Disk defrag should only run when the system is idle, always has done since vista.
Click to expand...
Click to collapse
Antivirus is windows defender.
So, judging by your answer, my win8 installation is corrupt. Fine, I just reinstalled it. Let's see if it works better now^^
Here are some screen shots of perfect CPU utilization with stock system and a ton of exposed modules.
What you want is OSmonitor to be at 1 and 2 about 50% to 80% of the time on the usage list, but that is more common with custom kernels. With stock, 1 and 3 becomes more common.
What causes hits to the system to keep OSMONITOR from stabilizing in the top ranges of utilization... quite simple; Modules that directly require the system to update screen or pol processes in background. In simple terms, the need for the OS to do the dirty work.
That is why I don't use Tasker, battery performance enhancements, and themed system type mods. Without them I can get 12 hours on a single charge with minimal sleep time, so by identifying how apps effect the system, one does not need to add overhead to correct, just need to do some detective work.
I noticed that Wanam modules use some CPU by poling the system. Even though there are plenty of good xposed modules, some are dirty in how they operate.
Not that they cause some overhead, but how they interact with other modules if used together.
Even if you find a nice app to do some custom work to your device, some use network connections to send data, either to play store, Google services, or to the developer site for debug or usage tracking. I suspect a bit of overhead is why network polling by such apps should be stopped if possible before dumping one or more because they hot on utilization.
One in particular is Solid Explorer. Not only I blocked ads, I had to block the app as well from background network usage. It is easy to find by looking at the usage data in network setting. If you are not using IPC$ or bothering with cloud storage, then by all means kill network usage for the app in question.
Right now, I am looking into Tunnelbear, Samsung's video player, and the stock video player on TouchWiz devices. Both do some odd things but are manageable. Mostly because I know what to expect.
Tunnelbear is now hooked to auto run when on an unsecured network. So it leaves its network service on when not used. Plus registration may stay on after closing. Very messy for programming, even through one may see the app as well made. IMO registration should turn off with the app closing. As for its network service, it should only enable when the option to auto start is enabled. A simple foresight many programmers don't see until pointed out.
Here I don't program and know better... a true programmer should know the processes inside and out before writing a line of code. Maybe resorting back to assembly will brake such programming habbits, that are easy to make with tools to plug away with in programming technique. Yep I know how to program, but I am not a programmer! It's a job that does not peak my interests.
Notice the attached images... the CPU usage will fluctuate but the CPU speeds will hold at one core enabled and at 200Mhz on stock kernel. On custom, it could be down to 100Mhz and any number of active cores depending on the kernel tweaks.
Partial fix for tunnelbear
Since I touched on tunnelbear keeping active connections for registration and network service. I was able to keep network service from being an issue, by preventing the service from running. I also prevented the quicksettings tile service from running as well. Both are not required and for my usage tunnelbear does not work well as a full vpn outside of streaming and messaging, due to the lack of multiple connection limit. So even if I wanted to have tunnelbear auto connect when connecting to a public Hotspot, I would be unable to use the VPN the way i want to.
So far the only issue is the registration service sticking in background once tunnelbear is closed.
Latest vs Older apps
Again I was forced into doing a trial and error run of older app usage vs that of newer and latest app functionality.
Tunnelbear and BBCiplayer were knocked down, for two different reasons.
BBCiplayer had difficulty with downloads completing and clear playback, as it seemed below 720i standards. Had a older good copy in my tibackup backups. That fixed one issue. As for tunnelbear... there was way too many so called improvements that I did not use. Plus having the old and dated version cleared up network service loading, as it did not hook with detecting unsecured networks for VPN auto connection. As for registration being loaded and running, it seems to be a problem since v 100 or so, and all the older ones fail to connect now. At least the registration service will close it's connections when not in ise, unlike the newer versions.
There are many other apps I will not update because of such trouble. I rather have 100% functionality with an app, than to have a bug or two plague what I expect out of it. Plus I don't need all that Facebook, Twitter, and other social stuff tied into what I use. Actually a browser is all I need for social activity if I choose. Disconnecting your devoce from social functionality and syncing. Truely releases your device from the power being consumed by these unnecessary apps, even when they are not in use.
You could freeze them, but it is more of an Inconvenience than what it should be.
At least with a browser, once your done, it's is done with its connection and you did not need the use of a background service.
Idle utilization
I performed a cpu idle during normalization usage stat after tweaking my disabled services and frozen system apps.
The screen shot was done 12 minutes after wake up, screen always on and had just hit 99% on a full charge.