Feel free to continue off topic stuff about memory here.
Originally posted by patkoscsaba:
Originally posted by zikzakatak:
opera use 300 mb with 12 tabs open but when i close all tabs and just leave 1 tab open (speed dial) opera keeps using 300 mb for hours.
How much memory your system has? Opera keeps the memory unreleased after closing tabs in case you need it again, but if you are running out of memory and another application asks for RAM, Opera will release the memory.
But, in this case, does it release things from memory by deleting actual entries from all of Opera's memory caches, or, does it just release things from physical memory and swap it all to disk so that the other program(s) you're trying to use can make use of the physical memory?
If it's the latter, that can be a very bad thing for performance on older computers as then, each time you switch back to Opera, it has to pull back in all the stuff from the slow disk. With continued use of Opera (hours, days), if it doesn't truly nuke memory and just swaps everything out of the way when necessary, all that stuff's going to build up in the swap and be way larger than the physical memory so that Opera will only be able to pull in little pieces at a time (from the very slow disk), which will cause Opera to run like crap every time you switch a tab or do anything. And, since Opera's busy swapping things in and out all the time, other applications suffer. Then, you'll have to restart Opera to really get things back to normal. But, since all that Opera mem is swapped out, when you close Opera, it's going to take ages for Opera to pull the memory back in (from the really slow disk) and free it first. In these cases, it might take 30 seconds to 40 minutes to shut down Opera if you don't manually kill it first. Then, you get a really fast computer with a fast hard drive and lots of memory so that you don't run into the swapping issue a lot, but if you do, it's not as bad because of the faster hard drive.
If the former, that can be great for older computers. (Hopefully, the latter doesn't ring a bell for any and reeks of fantasy.)
If you don't want to let Opera use as much RAM as it wishes or thinks it's appropriate for your system, set the "Memory Cache" in the options to something smaller
This may help some, but if Opera doesn't clear things when one expects (like closing a tab for many), when you go to use another program, there won't be as much free physical memory as you expect and you'll trigger more swapping than you wanted and could have avoided.
The end result is independent of how much memory you have. Having more memory just delays the problem.
Now, if you close all tabs in Opera and clear all caches and Opera still isn't freeing up the memory you expect, that's either a bug, or Opera doesn't provide the control you desire.
Personally, I think Chrome has some PROs in this area. Sure, you can't open a lot of pages at once or you'll use a lot of memory. But, you can nuke memory completely by closing a tab. This gives the user more power to control things the way they want. It'd be cool if Opera could at least simulate that as an option somehow. As, what's the point in caching and holding on to everything if it just gets swapped to an extra slow old, disk all the time?
But, it's understandable that applications can't always cater to lower memory situations on older computers with slow disks.
Restart your applications often!