This code allows you to stretch background images when you page expands to provide a better user experience.
HTML
<link href="/global.css" rel="stylesheet" type="text/css" />
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="header" colspan="2"> </td>
</tr>
<tr>
<td class="top"> </td>
<td> </td>
</tr>
<tr>
<td class="middle"><img src="/middle.jpg" alt="background image" id="bg" /></td>
<td> </td>
</tr>
<tr>
<td class="bottom" colspan="2"> </td>
</tr>
</table>
CSS
.top {
width: 130px;
height: 143px;
background: black url('top.jpg') left top no-repeat;
}
.middle {
width: 130px;
height: 100%;
/* background: url('middle.jpg') no-repeat; */
background-size: 100%;
}
td.middle img#bg {
width:100%;
height:100%;
}
.bottom {
height: 59px;
background: #fff url('bottom.jpg') left top no-repeat;
}
Although this code is rigged using tables the method can easily be changed to use <div> .
Click here for a demo of this code
This is a method to disable 'Magic Quotes' when you need to turn them off for such things as joomla. The following instructions are to get your system php.ini file, disable Magic Quotes in this file, and then get the system to load the new file and overide the system php.ini using a command in your .htaccess file.
Please follow the instructions below:
; Magic quotes for incoming GET/POST/Cookie data.To
magic_quotes_gpc = On
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/example/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
There are a couple of ways to overide the PHP settings as defined in /usr/local/lib/php.ini (the system php.ini) and i will list them below.
NB: DO NOT PUT php.ini IN THE PUBLIC_HTML, they can be read and downloaded., only put them in there or any subfolder if they are protected.
You can just place a copy of your modified php.ini file, altered to your needs, in to any folder and all scripts run from that folder will run using the php.ini in the folder, instead of the system php.ini.
This is set in the .htaccess file and points to a php.ini of your choice. It is preferable to place this php.ini outside the public_html folders.
Examples
1 - This is the most basic of the command and will work for most people
suPHP_ConfigPath /home/example/php-folder/php.ini
2 - This example shows how you can put the php.ini in a public_html folder and prevent access to it. The suphp command will also not run unless the module is installed and this can prevent errors upon installation.
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/example/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
This is set in the .htaccess file and points to a php.ini of your choice. It is preferable to place this php.ini outside the public_html folders.
Examples
SetEnv PHPRC /home/example/php-folder/php.ini
Links
This assumes that you webhost company has already sideloaded the appropriate version of PHP you want to use. This is the .htaccess code required to tell the server to use the alternative version.
Sideloading PHP allows you to have mulitple PHP versions running on the same hosting account/server. You have the default PHP version and then the sideloaded ones which you can access by using an alternative php.ini defined by a .htaccess file. Using suPHP will override the default php.ini recursively.
This code below is put in your .htaccess file and configures the host to use a sideloaded version of PHP, in this case PHP 5.5.
# Custom Legacy PHP 5.5 handler placed by host
AddType application/x-httpd-php55 .php5 .php4 .php .php3 .php2 .phtml
suPHP_ConfigPath /usr/local/lib/php55.ini
# End Custom Legacy PHP 5.5 handler placed by host
The target version of PHP needs to be installed by your host provider for this to work.
These instructions assume your phone has been unlocked/rooted, if not you should use the cyanogenmod windows installer to do the work for you.
The current ROM I am using is cm-11-20141230-NIGHTLY-i9100 on my Samsung Galaxy S2 i9100 (intl) from http://download.cyanogenmod.org/?device=i9100 and I used GApps from http://slimroms.net/index.php/downloads/dlsearch/viewcategory/1150-addons4-4 - I used the Slim_mini_gapps.4.4.4.build.8.x-385 og
When install a ROM it just replaces the /system/ partition (and cyanogen it also does the /boot/ partition) thus all system settings are saved which are stored in /data/
Does the following
Notes
Android 5.1.1 on Samsung S2 Links
Both my internal and external SDCards dissapered on my Samsung s2. The external SD Card when I removed it and put it in my windows PC it read normally and had no errors.
I do not know what the exact cause is but possibly one of the following, but you should consider that both of my SD Cards stopped working.
So Basically it appears that the partitions are mounted but the filessytem that is mounted is corrupt so it almost appears as if they are not mounted.
After days of research I did the following to get my SD Cards to work
External SD Card (sdcard1)
Internal Card (sdcard / sdcard0)
This is more tricky because it cannot be removed and this solution is currently the best I could come up with
These are my notes on all of the googleing and trying of different solutions
The terminal is a powerful tool to be able to help diagnose partion and disk issues
** add websites where appropriate to my links directory
My Samsung was already rooted so if yours is skip to the next section………
{Picture of odin here}
In the picture you can see the ROM is cut up into sections
So I Flashed by
Files I used for a successful flash
My Phone was already Rooted
Update (22-01-17) - The following settings work
The main cause for slow xampp on windows is the MySQL service and the slow access times slow the whole page loading process.
i used the MySQL ini file my-huge.ini and these settings from the drupal site both the PHP and innodb. Other settings might of been applied at testing but I dont think so.
INNODB SPECIFIC innodb_buffer_pool_size = 384M innodb_additional_mem_pool_size = 20M innodb_log_file_size = 10M innodb_log_buffer_size = 64M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 180
The document covers how to improve speed in Xampp as I have found it struggles to most basic tasks quickly.
Xampp is easily configurable and that is why I have persevered with it and created this document in which my research has been successful.
I will cover all of the tips and settings that I discovered along the way. Some are of use whilst others were and some definitely not.
There are 2 main areas where xampp can be slow.
When to diagnose xampp speed
Research:
Below are various lines that should be added or commented out in the hosts file to increase the speed a page loads. I have seen various combinations of these.
These localhost settings try them on there own to see if you get any improvements. Most likely on windows 7+ and the latest version of xampp you will see no difference but on old setups (which need updating) you might see some benefit.
127.0.0.1 127.0.0.1
127.0.0.1 locahost
::1
not massive improvements, if any
Research:
Example 1 – from here
The query side of things is not 100% needed because it will not effectively affect the base line speed.
#---------------------------------------------------- # !!!! Query Cache Config !!!! #---------------------------------------------------- query-cache-size = 524288000 query-cache-limit = 5242880 query-cache-type = 1 #---------------------------------------------------- # !!!! InnoDB Buffer Config !!!! #---------------------------------------------------- innodb-buffer-pool-size = 1000M innodb-additional-mem-pool-size = 200M innodb-log-files-in-group = 2 innodb-log-buffer-size = 10M innodb-file-per-table = 1
Example 2 – from here
innodb_buffer_pool_size = 1G
innodb_flush_log_at_trx_commit = 2
innodb_thread_concurrency=8
transaction-isolation=READ-COMMITTED
Research:
people have said moving back to myislam over innodb make a massive difference.
here is why.
all the data from all the databases in xampp is stored in 1 files but has table referecnes for compatability only. so what this means if you have one nasty database it will slow them all down because you have to parse the whole database. by switching back to myislam they all have their own separate files and so will not affect each other.
This article includes discussion on the following from running slow on localhost
This article includes discussion on the following from localhost (xampp) very slow on Vista for some reason
General Links:
There might be specific issues on certain systems but the majority of the lag is with the MySQL engine, the database settings, especially since xampp is now using INNODB instead of the old MyISLAM.
Stay with INNODB as it has better data protection. It is best to tweak the settings to get the best out of INNODB rather than migrate to MyISLAM.
Current at (29-06-13) and (WIP)
innodb_buffer_pool_size = 1G (has biggest effect) innodb_additional_mem_pool_size = 200M innodb_flush_log_at_trx_commit = 2 innodb_thread_concurrency = 8 transaction-isolation = READ-COMMITTED
these are commented out in hosts but probably make no difference on modern systems
# 127.0.0.1 127.0.0.1 # ::1 localhost
NB:
Load times on the fresh copy windows 7, using a large website with xampp and on a 5400rpm drive:
Page afterdispatch (no internet) afterdispatch ( with internet) home 546ms 210ms portfolio 327ms 176ms
I reformatted my pc in the end because there was something affecting the tcp/ip stack
# 127.0.0.1 localhost
# ::1 localhost
xampp mysql/mysql in general cannot handle ipv6
xampp mysql/mysql in general cannot handle ipv6. if it resolves localhost and gets ::1 , the mysql cannot resolve the address and thus does not work
solutions:
unchecked:
This batch file will allows you to ping the different types of network hosts. Run this and view all of the ping responses on the screen at the same time. I would then monitor them over time. I ran a test for 32 hours to make sure I could see any differences easily.
start ping localhost -t start ping 127.0.0.1 -t start ping 192.168.1.100 -t start ping ::1 –t
These are useful for helping with IPv4 and IPv6 issues
This just something that i have picked up but not checked.
There is one of two scenarios at play here. Either your CPU is maxing out, or you can browser connect to the server, but not see anything (the system is trying unsucessfully to load the page). In either case you can find the following message in the Apache log file:
Child: Encountered too many AcceptEx faults accepting client connections. winnt_mpm: falling back to 'AcceptFilter none'.
The MPM falls back to a safer implementation, but some client requests were not processed correctly. In order to avoid this error, use "AcceptFilter" with accept filter "none" in the "\xampp\apache\conf\extra\httpd-mpm.conf" file.
This document covers improving performance on Windows 7 but will most likely apply to most windows operating systems (XP/Win7/Win8)
I have windows 7 x64 ultimate and it is running really slow it freezes and almost locks up like the CPU is overheating but never does. This is why I am writing this guide
This the 26-06-13 version.
Contents
The following section gives you a list of things you can do to reolve issues outlined above to increase your PCs performance.
Failing hardware can have a real effect on a systems performance.
The following hardware issues can effect a systems performance:
Improvements:
I see these sort of issues time and time again, not a lot of people understand that the hardware aswell as the software needs looking after, granted not as much. When a computer runs hot its efficienciy and its ‘Top Speed’ is reduced. Also when you are running a computer in the upper end of its thermal operating range you run the risk of killing the hardware.
A System can run hot and cause performance degredation if:
Improvements:
The hardrive will be degrading performance if:
To test the hard drive do the following:
Improvements:
BIOS settings control every aspect of a computer and as you can appreciate you can change the performance of a system by tweaking the settings. Some changes are not as profound but still can make a difference ie RAM and HDD settings
BIOS settings can degrade performance if:
Improvements:
BIOS settings to note:
Add more settings here
The system RAM in your system can be the cheapest way to improve your overall system speed
The RAM will degrade performance if it is:
Improvements:
Drivers are an integral part of windows and as a consequence can have a large impact of the performance of the system, especially chipset and graphics drivers
Drivers can degrade performance if:
Improvements:
diplay drivers – these get a special mention like the chipset drivers as they are a main part of your windows system. Display drivers affect how quickly windows respone and do a lot of visual offloading for window (from windows xp upwards, even more so with windows 7)
(because of specific windows visual offload etc..) make sure nvidia or ati etc.. not basic windows ones
remove nvidia or ati drivers with speciliased removal tool - (then install latest)
using the generic microft supplied drivers you will not get all the features from your card, no advanced 3D acceleration, Aero theme wont work, some display mpodes might be missing, the card will not provide all the windows graphics offloading reducing performcance
there are 2 reasons that you should use a vendor specifi drivers for your graphics card
Improvements:
Remove and re-installed graphics drivers
Thease are absolutely essential for achieving the best performance on your computer. So many time people/users just rely on the drivers windows installs for most of the equipment, now while this is an amazing feit of software engineering and can make an end user life much easier they will not get the best performance out of your hardware because the drivers used are generic and usually only provode the most basic of functions
When you use chipset specific drivers fron the vendor of the chips (ie intel) you have to assume they know their hardware the best and are likely to get the most out of it. This is the basic reason for installing your vendors chipset driver.
Install the correct chipset drivers – if you do not the windows drivers will work but will not work as well as the manufacturer supplied opnes and can also be a cause of constant disk access, an especially problem in vista
I have 2 x compatable chipset drivers, which is better for my computer. (Ie select driver from list.), Use the newest one unless you know it is wrong. You can always benchmark here to see if there is any difference.
vendor specifig drivers probably have a lower footprint
This post also indicates if you do not have the correct chipset drivers that this in itself can cause constant harddrive activity - Windows 7 Slow. Constant Hard Drive Activity.
This section is not fully explored yet but these are a good start
The files sytem will be degrading performance if:
Improvements:
3rd party software is the biggest section of all. People always blame windows for causing the system to run slow but generally this is not true. Consider the billions of dollars that Microsoft invests in Windows compared to smaller companies whose budgets are very small. That being said I will address all the issues relating to 3rd Party software here.
The 3rd party software will degrade performance if it is:
Improvements:
Out of date software, either by function or age is easy to identify and fix.
If software is out of date it can degrade PC performance. Software is out of date if:
Improvements:
Most people would not understand how fundamental an antivirus software integrates into windows. It attaches at the base level to prevent any infections or attacks getting sent up the chain where it can access a User’s data etc…
Issues with Antivirus:
Improvements:
When you find your computer running slow a prime candidate is the antivirus software.
Research:
22-06-13
Antimalware scanners are very similar to AntiVirus products in their approach. Some Antivirus programs now boast about how they scan for malware aswell. I personnaly think they are all virus’(please don’t write in, I know) and should all be scanned for by 1 program not multiple programs. Spybot is know to cause issues with antivirus software.
The anti-malware software will degrade performance if it is:
Improvements:
Research:
Issue:
Improvements:
This issue has been dealt with in the following sections.
Research:
FF and IE tabs freezing issue
Everytime i open a new tab my internet freezes [Solved] – this thread blames kaspersky AV and Java Plug-In 2 SSV Helper
This forum thread, Win-XP Browsers Hang on page load - (waiting for…), says the following:
Be careful not to install multiple anti-malware/anti-spyware packages. They'll sometimes all try to get the webpage - before it displays - to check it for malware, and then they'll lock each other, depending on which process fired first.
When I uninstalled spybot running along side Microsoft security essentials this issue got better but some tabs still loaded slowly and I still got some lockup. I then around the same time swapped my antivirus to Bitdefender and since then I have had no slow tabs or lockups in either FF or IE. Swapping the antivirus here was the biggest change.
In fairness to the above, since i swapped my antivirus from M$ av to bitdefender i have not had anymore page load speeds issues. this issue is highly dependant on realtime scanners as both of these articles point to.
This section definitely does cause performance issues. Without doubt one of the cheapest ways of improving your system (assuming it is infected).
Most PCs that are attached to the internet get infected with malware at some point, this is either down to the stupidity of the end user or clever attackers, either way the end result is the same.
Attackers do not care how efficient their programs are as long as they get on to your PC and do something. Their purposes have quite a spred so I will only cover the basic issues malware causes
Malware can degrade performance by:
Improvements:
Outlook can affect the whole system when it is running. If it is not running I don’t think it makes much difference.
Outlook can degrade a systems performance when:
Improvements:
Now firefox and indeed other programs with addons can affect PC performance but as I really only have experience of firefox addons I will give firefox addons their own section
Due to the nature of firefox addons they are running all the time, sometime there is partially usage of a disabled addon (need to check this). These addons can interact with windows at a low level and are not restricted to the browser hence why they can affect windows even when firefox is not running (needs checking)
FireFox addons can degrade performance if:
Improvements:
Add-ons that degrade performance:
This can make quite a profound difference to a system even thought it’s apparent footprint is very small. When you install programs some of them ask you if you want to install context menus (shell Ext). This extra functionality is not to be sniffed at as it can be very useful, however it can come at a price.
Every Shell Ext/Context Menu item takes up resources because windows has to load files from the software and then perfom functions, in contect, on whatever has been clicked. The more Shell Ext/Context menus the longer it takes to load/select the item.
Shell Extensions/Context Menus can degrade performance if:
Improvements:
While windows is loading I have monitored the files accessed via the ‘Resource Monitor’.
Issues:
Improvement:
While windows is loading I have monitored the files accessed via the ‘Resource Monitor’.
Issues:
Improvement:
If you have a lot of temporiy files your system will spend prescious resources scanning them with your antivirus system, caching them for the various programs. All of this functions causes the harddrive to access the file slowing things dowm.
The solution is to delete temporay files on a regular basis. This saves disk space, accessing, prevents your file system becoming fragmented
If your recycline bin hass stuff in it, these files are taking up space and antivirus software will scan them on load up. I do not believe windows caches these though. Some people let there recycle bin get completely full and now on systems with 1TB harddrves even 10% is a lot of files.
This is one of the most easiest solutions. Empty the recycle bin
The registry just like the file system need to have maintenance. It suffers from fragmentation, useless registry keys bloating the size and also the obligatory errors that come with any complex system. Registry issues most definitely affects performance of the system.
A degraded Registry will degrade performance if it is:
Improvements:
in windows startup items you can find loads of programs starting up that you never use that run services and eat up memory – you can selectively disable all of the ones you do not need. I have discovered that startup items can be the cause for slow performance as they just keep loading stuff in to standby memory. Removing these can massively increase your systems performace. If not rtry disabling ones that you need and see if your computer runs any better. Definitely disable all of those update agents that you dont need.
If you disable something from startup it does not nessasarily mean it will not turn on when you want it. This is because a lot of programs will start services when they need them, they are only inb the startup to try and make the software run quicker but this is no good if all these services that are started to make you computer run quicker add up to making it run slower. I am of the opinion that a service should only run at startup if absoulutely nessasrary and programns should start their servcioes only when required.
Improvements:
Disable uneeded or unwanted startup enteries. If there are issues you can enable them again later
This is quite a simple section but difficult to find a perfect setup. Some people go to the extremes of disabling absolutely every service they can get away with for extra performace under the basic premise that ‘every service has a performance hit’. This by its very nature is true but for every service you delete, you remove functionality. The trick is only to remove the functionality you will never use. There are some service a home user will never use, but I am sure the performance increase is not noticeable to them anyway.
For the unitiated I would just stick with altering the non-microsoft services as these are most likely to give visible performance increase and with the possiblilty of no loss of functionality
Windows Services can degrade performance if:
Improvements:
remove daemon tools and the sptd driver it installs - SPTD can have a big effect on optical drive performance and possibly the harddrive aswell. This has been noted on some forums.
The SPTD driver is only required for some of the DVD emulators higher fuinctions.
DISABLING SYSTEM RESTORE WILL INCREASE PERFORMANCE BUT DO NOT DO IT !!!
This might help those of you wondering what your hard drive is doing after you leave your computer/close your lid/etc.
While trying to figure this out myself I was looking at ProcessMonitor output. (My HDD is pretty quiet but I really need total silence to sleep, and all that activity kept me up). I noticed a lot of this:
C:\Windows\system32\rundll32.exe /d srrstr.dll,ExecuteScheduledSPPCreation
Turns out that by default, Windows 7 schedules System Restore to create restore points every night at 12am, but only after the system has been idle for 10 minutes. So if you go to bed at 2am, it'll start building the restore point just about the time you're drifting off to sleep. Bad for us light sleepers.
There are many processes that could take advantage of idle processor time, but assuming you've eliminated other possibilities like scheduled virus scans, defrags, windows indexer, superfetcher, etc., this is probably the issue.
To modify this behavior, go to Start Menu -> Administrative Tools (may need to enable this in start menu properties if you don't see it) -> Task Scheduler ->
In the Task Scheduler tree on the left, expand Task Scheduler Library -> Microsoft -> Windows -> SystemRestore. In the middle pane, click the "Triggers" tab.
By default you'll see two entries here, both enabled: One "Daily, At 12am every day" and one "At startup". To make changes to these, click the "Properties" link in the RIGHT pane of the Task Scheduler window.
Go to the "Triggers" tab and double-click the "Daily - 12am" trigger, then uncheck "Enabled" at the bottom. Obviously you can alternatively edit the trigger settings, or the conditions, to set parameters that won't end up disturbing you.
Just learned this and thought I'd share. Hope it helps.
PS, Task Scheduler is a good place to look when you're investigating mysterious automated Windows activity. It's a much more complex and integral part of Windows than it used to be (ie. in Win XP), and Windows 7 makes much use of it to run processes. Several things are set to run regularly there in a default Windows installation. In my research into these issues on the forums, I've found that people aren't really all that aware of this yet. Especially after you've eliminated all third-party software possibilities, this is the place to look next.
More info: http://equazcion.wordpress.com/2010/...steryactivity/
This is a good place to look to see if there are any tasks running that you don’t know about
Read this article - Unexplained hard drive or processor activity in Windows 7: Meet the New Task Scheduler (2.0!)
choose your screen saver wisely. if you get a grpahic intense screen saver it will run your CPU hotter and slow your PC down over certain periods (screen saver recovery time). this might be a minimal saving but is still there. select 'Blank' screen saver to negate this
Do these recommended optimizations below on your computer, not all of them will be appropriate. They are from :
http://thessdreview.com/ssd-guides/optimization-guides/the-ssd-optimization-guide-2/
if your PC is not running in AHCI it might be running in a lesser state than it is capable. AHCI is the latest iteration of the SATA standard and allows larger throughputs of data but does required it to be enabled.
Sometimes AHCI is not enabled by default, perhaps
Improvements:
because I am already running intel software I am already in AHCI mode
download a program called AS SSD Benchmark, you will use this to verify whether ACHI mode is on or not.
Load AS SSD Benchmark and look at the following picture.
If you see msachi, this means you are running in ACHI mode.
iastor.sys means you MUST be in AHCI (via Intel driver)since if you were not, it would be pciide.sys...
msahci.sys, or iastor.sys = AHCI or RAID (which uses AHCI for each drive)
pciide.sys = legacy "IDE" mode
Also If you have the Intel Rapid Storage Technology utility running (This utility is not needed for the driver but just lets you look at the settings. You can probably uninstall afterwards.) Goto the utility, the ;Manage' Tab and click on advanced, you will see a setting called 'Native command queing', if this displays yes you are using AHCI via intels own driver.
Native command queing = yes is a sign it is running in AHCI mode. I found this in my intel utility
'Native Command Queing' is the major difference between SATA and SATA AHCI mode.
This registry setting makes no difference to the SATA mode if you are running through intels IaStor.sys. Does not harm to have it set to AHCI though.
If you are not running in AHCI make sure that your computer supports AHCI by checking in the BIOS before making any changes. If it does, boot back in to windows, make the registry changes as outlined in the article, restart your computer, enter the BIOS and change the SATA mode to AHCI. When windows loads it will change opertions to AHCI mode and use that driver, can then verify using the AS SSD utility to check.
When you first install windows, if you installed with standard drivers it is most likely that windows installed with the normal SATA drivers. Windows disables the SATA drivers it does not use during an install. Sometimne windows does not correctely discover the AHCI capable chipset, and again disables the AHCI driver.
0 = AHCI and 3 = IDE
The Msahci driver in Windows 7 is disabled if the original install was made with the BIOS set to native IDE. The Msahci driver must be enabled before you change the SATA/RAID mode of the boot drive.
Dummies Thread Here
Improvements:
Research:
when I disabled 'Allow files to have contents indexed in addition to file properties' on C: and D: the windows search service started spiking and coming on regular bais, his might be it rebuilding its index after I removed the tag as above.
So, if you disabled index contents of files, when you reboot this causes the Windows Search Service to start using large disk usage, this might be because it is re-indexing files with the new properties or it might be because there is a fault with it. So either disable it with 'index contents' option or leave it on and see if it does indeed re-index everything and then stop whirring away
so in summary, if you remove 'Allow files on this drive to have contents in addition to file properties' disable , the following is true
There is an 'Index Otions' in windows/control panel
This is a useful article, Fine tune the Windows 7 Search Index for better performance and covers all of the configurable settings.
Carried on next page
where to get the settings for the windows index (not the right click on drive)
The image Below shows the default settings for option 1
The image below shows the settings I was running with for a while. This relates to option 1.
should be disabled if you install diskeepr or 3rd party defrag program
my defrag schedule has already been disabled
when windows loads it does something called prefetch and super prefetch, what this is , is where windows loads up files it thinks you will want before you need them and puts them, in to your physical ram, this section of ram is called standby ram. Not only does it causes large disk load on first boot but eats a chunbk of memory. The experts say that this memory used to cache these files does not effect the use of memory because if it is needed windows will just empty it. The thinking behind this is that you might as well use the memory for something instead of it just being sat their. I personnally dont 100% believe this, for one you have to thwrap your harddrive to fill the ram in the first place and it extends the load time of windows massively
Improvements
Option 1 – Partially disable
Change the Superfetch parameters to operate on "boot only" and your thrashing will stop. Some will argue against this, but for me, I get no more thrashing, my boot times are fast, and the OS is plenty fast without Superfetch doing it's strange things.
Follow these instructions and set both EnableSuperfetch and EnablePrefetcher to "2". Then enjoy your PC without constant disk thrashing.
Change SuperFetch to Only Cache System Boot Files in Vista - the How-To Geek
Option 2
disable prefetch and super prefetch to prevent 'Files Mappings to the standby RAM (prefetched/Super Prefetched/Cached) (see rammap notes), or in simple terms loading files in to the standby RAM
these instructions taken from here
Research:
When I disabled the prefetch and superprefetch,
the windows load up seemed to take about the same amount of time to ge to the windows desktop but was fully loaded sooner,
hardly any disk access and windows is very responsive
This disabled superfetch service
Improvements:
High disk activity (System Volume Information) – this article is further evidence of the disk activity this process creates
This disables the windows search feature
Improvements:
Disable Service
Uninstall Service
You can uninstall windows search by going to the following location and unticking the box
Control Panel / Programs and Features / Add or Remove Features/ Windows Search
Research:
disabling index file contents and windows search service did not seem to give me a performance increase but a possible performance decrease, especially when I cannot use outlook instant search. This one would need testing over time. If the computer was just a file server it definitely would help as it reduces disk load, not nessarily gives a system perfomance increase
disabling this service disable outlook instant search. You can possible have this service on with disk indexing disabled to allow you to have good search functionality in outlook whilst reducing disk thrashing to get a poor file search service.
Use effective search for a decent file search (and contect based) facility
when i re-installed windows search i left he pc on overnight and the windows.edb was constantly accessed. I left my laptop on all night. The following the morning harddrive activity had settled down. Search indexer is running now and again.
Research:
It doe smka eload slightly quicker but I would leave this on and then you can see windows is actually Loading
make sure performace is set to high
(End of SSD Tweaks page)
ReadyBoot is related to ReadyBoost in that it involves "prefetching" of files.
ReadyBoot uses the ReadyBoost services to tackle one particular problem -- speeding up the processes of booting the system and recovering from hibernation. It keeps track of the files most often needed when the system boots and builds a temporary cache -- sort of a "Boot-Up's Greatest Hits" -- when the system starts. It can use flash wherever it finds it in either external flash devices or H-HHDs.
Windows 7 - Disk Thrashing - disable ReadyBoot (not ReadyBoost) forum thread - see here
This article describes in detail what Readyboot. Readyboot and Prefetch Folder
Disk Thrashing - disable ReadyBoot (not ReadyBoost)
When you disable this service you reduce the amount of disk access on load up which makes the load longer. However when the system is loaded there is no difference (this needs checking. There should also be less disk access during use as well because no extra calculations or caching is required for this disabled service.
Permanently disable ReadyBoost forum – might only be beneficial when using an SSD
How to disable Readyboot in Windows 7 ? – this describes the pros and cons of this disabling Readyboot
Improvements:
Research:
in my Performance Monitor I can see ReadyBoot.etl logfile is thrashing my disk like crazy on startup.
I just checked on mine and the only time I can even find/see ReadyBoot.etl is during startup, and it disappears about 90 seconds later.
after disabling Readyboot, memory report:
slight reduction in main RAM use (150mb), slight reduction in standby ram being used (300mb)
boot loading takes slightly longer, if not the same. Certainly not 20 seconds more. (The RAM difference might not be a permanent gain, could be within statistical boundaris)
this section will cover some items that have already been mentioned in this article, however as the title suggests these are aimed at users of SSDs but because their aim is to reduce disk access they can be used to increase the performance of a PC with a regular HDD in, please not that not all the tweaks and inmprovement will be useful.
Most of these optimizations will reduced the use of the Disk because SSDs are so fast a lot of things do not have to be done and some options are better when they are turned off.
I have just included the link to The SSD Optimization Guide Redesigned by ‘The SSD Review’ website as it is easy to read, is a central source that gets updated when required and is easy to read.
This another tutorial for SSD optimization and might be of use - Can You Get More Space Or Speed From Your SSD?
This is a possible SSD tuning guide but I need an account first – click here
Windows 7 Optimization Guide
This is such a good guide covering some of the same items I have found and applied above, but also has others I have not covered so I am just including the link and pointing you guys to have aread of it when you have finished my optimizations.
The windows 7 Optimization Guide from ‘The SSD Review’ website.
My Computer and Windows 7 Optimization Guide
This is a really good guide and should be read for those extra ideas
My Computer and Windows 7 Optimization Guide
Some people say disabling UAC makes no difference, apart from the physical time it takes to click on the prompt I cant see how it makes any difference but can cause issues with permissions.
Research:
If you read this article for the rammap application it will explain the different types of memory and I will let you mnake your own mind up. But if you are reading this and I have wrote it you have to wonder who is wright, the experst working in a lab or me with a fast running computer.
Read this article: Introduction to the new Sysinternals tool: RAMMap
Download RAMMAP here
--
This section deals with an indirect consequence of stuff on the system. It covers some diagnostic methods of finding out what software is using what RAM and can help with increasing system resources available.
use rammap64.exe from sysinternals to look at what is using up physical RAM
It is confirmed that the MFT/Meta file refered to in rammap is that of files in RAM only
my ntfs metafile is 400mb, this is split between standby 330mb and 63mb active. reducing ntfs file fragments and files would - nb: reduce this, possibly changing the cluster size would help.
This file could be the file table just for the file locations in ram, not the NTFS MFT, in which case only by having less files cached in to RAM would this be reduced.
on the rammap 'File Summary' Tab you can see all the files the computer has loaded in to ram (can be lots), you will notice in particular the following groups
This is already added into the notes above and is not really required but for reference (23-06-13). So delete if not needed.
I have windows 7 x64 ultimate and it is running really slow. I have done the following but it still freezes and almost locks up like the CPU is overheating but never does.
My computer is still running slow so it must be something else. So I decided to start looking at what was using my RAM and what was causing the random disk activity spikes. For no reason at all my computers hard disk would start going mental, even with nothing open, this would of cousre slow my whole computer down.
If you go into task manager and load the resource monitor and go tot he memory tab you will see the ram split up into several sections. On my computer the standby ram section keeps getting bigger at the expense of the free ram until it is all eaten up and then does not get released, at this point my computer is running noticably bad, let alone my disk access issues and then I have to reboot.
The experst say that it is fine for the standby to get bigger and bigger and this is by design, but I am not ahppy about that
If you read this article for the rammap applicatio it will explain the different types of memory and I will let you mnake your own mind up. But if you are reading this and I have wrote it you have to wonder who is wright, the experst working in a lab or me with a fast running computer.
Read this article: Introduction to the new Sysinternals tool: RAMMap
My resource monitor memory specs at this poiunt are:
memory report:
Prerequsites
Causes
Solutions
a normal computer service should have been performed before following these steps ie malware scans, regisrty repair, defragging etc....
Round 1 – monitor and remove obvious
I did the following:
system is running well with no massive harddrive issues, no high cpu,
...... big improvement, maintained some free memory over time
the disk defragg software must have been the cause of the disk access when it was defragging, especially noticable on a laptop. Also diskeeper must have been preloading loads of files in to ram, this could be a fault with the old version I had on or normall operation
A massive performace increase as there has been no more sticking when I am doing stuff, I would still prefer it to be a bit more punchy, but at least there is no more random disk access periods.
This disk access could also of been cause by cached ram being dumped to the page file.
memory report:
Round 2 – disable startup items
here is my list of startup items I disabled and then got a massive performance increase. If you disable something from startup it does not nessasarily mean it will not turn on when you want it. This is because a lot of programs will start services when they need them, they are only inb the startup to try and make the software run quicker but this is no good if all these services that are started to make you computer run quicker add up to making it run slower. I am of the opinion that a service should only run at startup if absoulutely nessasrary and programns should start their servcioes only when required.
Now I have disabled the above the above I got a bit more or a performance increase, windows now pop straight up, apart from the boot load there is not much harddrive activity.
As you can see my memory situation is even better, a big chuck of free RAM and the standyby ram does not keep on increasing until there is no free ram
I would like to decrease the amount of ram the base system uses (in use)
memory report so far:
Round 3 – RAM usage
Standby RAM
use rammap64.exe from sysinternals to look at what is using up physical RAM
diagnosis memory usage:
on the rammap 'File Summary' Tab you can see all the files the computer has loaded in to ram (can be lots), you will notice in particular the following groups
Meta RAM
It is confirmed that the MFT/Meta file refered to in rammap is that of files in RAM only
my ntfs metafile is 400mb, this is split between standby 330mb and 63mb active. reducing ntfs file fragments and files would - nb: reduce this, possibly changing the cluster size would help.
This file could be the file table just for the file locations in ram, not the NTFS MFT, in which case only by having less files cached in to RAM would this be reduced.
Other RAM Tweaks
other things you can do to reduce RAM usage
Prefetch and SuperPrefetch
or, disable prefetch and super prefetch to prevent 'Files Mappings to the standby RAM (prefetched/Super Prefetched/Cached) (see rammap notes), or in simple terms loading files in to the standby RAM
these instructions taken from here
Round 4 – Disk and Load issues
Do these recommended optimizations below on your computer, not all of them will be appropriate. They are from :
http://thessdreview.com/ssd-guides/optimization-guides/the-ssd-optimization-guide-2/
(End of SSD Tweaks page)
Disabling Readyboot (not ReadyBoost)
Windows 7 - Disk Thrashing - disable ReadyBoot (not ReadyBoost) - see here + 2 other linked
pages
before disabling Readyboot, memory report:
after disabling Readyboot, memory report:
slight reduction in main RAM use (150mb), slight reduction in standby ram being used (300mb)
boot loading takes slightly longer, if not the same. Certainly not 20 seconds more.
First time in this process my Active RAM is below 2.0GB
Round 5 – Uninstall unwanted or uneeded software
This section is easy, just go through you programs list and uninstall software you do not use or do not need. You might want to refer to the following to give you an idea of what to remove to gain performance:
'Your Uninstaller' will do a more complete job of removing applications.
I have removed
memory report so far:
still to do,
if you have not already don so, uninstall all uneeded prograsm, if you have, double check your installed programs.
Also hacked programs can cause issues, even though they seem to be running well
corrupt antivirs can cause issues. Uninistall your anti virus program, reboot twice, then re-install it. This can help a lot some times. These sort of issues are usually caused by the upgrade tree/method they use, it is not always perfect and errors can build up over time. So what this does is instead of an old program being patched to death you ge the l;atest version of the software with less disk and CPU overheads.
round 6 – services
delete services that have files missing as this cant be good for performance
I disabled the following services
Round 7 – Miscallaneous perfomances tweaks
UseFul Links
This document assumes you have completely cleaned your PC following the information in my malware/service document or just have a clean PC, this document complements it.
I have also included security informations for other areas of security in this document to make it easier to get a more secure enviroment. If any sections over time get to big to be included here i will move them and refence the subsequent articls.
Most hardcore programmers probably use C or C++ as a base and also know java, for web devlopers HTML, PHP, Java, ruby on rails (optional) and javascript.
I believe as hardware gets better that C++ will be used more that C, currently C++ is used for gaming and high end software. Firefox is written in C++ and so is the search engine GigaBlast.
Because C is aimed at OS, linux and embedded systems even though you can right other stuff with C, I recommend learning C++ first. This is because you learn the basic of C whilst learning C++ (I know people will tell you they are different languages, they are right and wrong. Read my in depth article on the differences between them) and as C++ can do more of the stuff you are most likely to want to do like games and apps, c++ is the way. Another thing about C++ is that JAVA is based on C++ so by learning C++ you get a really good start on JAVA.
JAVA is used for design most android apps amongt some online applets and games for PCs(you don’t see them as much now). You can now develop apps and games for androis using C and C++ (and some others) which is useful.
If you are ultimately going to learn JAVA it will not harm you to do a short courcse on C++ before learning java. I am raeding a book called ‘C++ for dummies 5th edition’ and then I will see about how I feel about java. You must remember that C++ is a low level programming language and you can get at all the hardware of your computer which allos some fun.
I was debating about doing a short course on C with the book ‘C for Dummies Volume 1’ before C++ and the JAVa, a bit like history and felt like a natural progression. However I felt that asa I did not want to do OS level stuff like drivers or Linux programs (a lot of their stuff is C) but more games and apps and that I liked the OOP paradigm (the sharing of code) I elected to go for C++ which has the best of C (or all 1991 C) and OOP it would be eaiser to grasp and easier then to progress on to JAVA.
If I ever what to go and learn C once I have mastered the other 2 languages at least I will know why I want to learn it because at the minute I do not have a need. I will also find it easier to learn as these languages are all realated they will have similarities. if you get your head around programming logic it is really just the syntax that changes. Most languages today are based on C at some point in their history ie Apples Objective-C, this is C with Apples custom library added on, C++ is obviously from C, and as mentions JAVA is from C++. I could go through other languages and show you how they are based or derived from C but you get the idea.
The only exception to the order of learning stuff is if you definitely what to program Apple stuff, then I would learn C and then Objective-C.
You must know at least one of the following to be classed as a real programmer, all 3 would make you an excellent programmer.
Learn C++ to do all the hardcore stuff and JAVA for easy cross platform apps (ie mobile phones). C++ can design weapon systems
These languages are in the order you should learn them for the selected specialism you pick.
| General | Web | Windows | Apple | Embedded |
|
HTML CSS PHP - C++ Java |
HTML CSS PHP - ASP (optional) Javascript Ruby On Rails JQuery AJAX Java (optional) |
HTML CSS PHP - ASP (optional) C# VB ( the different versions) |
HTML CSS PHP - C Objective-C The new apple language Java ? |
HTML CSS PHP - C C++ (optional) |
HTML/CSS/PHP are an excellent base for further learning in any discipline and also because they are so widely used throughout the web. Another reason is that they are likely to be required in a great deal of your projects at some point.