Memory Management - Why not automatic?
I just upgraded from my old 3GS to a iPhone 5 32GB. Really love the new hardware and look, was a worth while upgrade. Within the first two days, I was really disapointed by the battery life I was getting. Even in standby (overnight, while sleeping) my battery would drop 30%! I've seen a bit of improvement since starting to manage more settings regarding notifications, location services and automated push/fetch services. But I got interested to find out more so I got one of these battery helper apps. I picked the highest rated one, Kingsoft's Battery Doctor. It has helped me learn a little more regarding managing battery life. But it's brought up one more concern for me, and that is memory (RAM) management.
So many apps are always running in the background untill I kill them out of the "task manager" or "multitask switcher". And I didn't notice how much RAM these were taking up. Is this also pushing down the battery life of my device? Why can't the phone automatically close out these apps (or provide an option in the settings) after they've been inactive for say 24/48/72-hours or so? I have apps in there that I opened days ago, but haven't accessed since. More then 40% of my RAM was free'd once I closed out these unused apps.
Any recommendations? Any chance Apple would add this recommendation to help with OS performance optimization?
Ok, thanks. I guess back to my first concern... any recommendations on how to improve battery life? I've read some threads about it, just want to make sure I'm not missing anything. I'm seeing 20-30% battery life drop when the phone is in standby overnight... I think that's crazy. I'm expecting less then 10% when in standby overnight (since it's supposed to have 225 hours in standby).
Bluetooth is not enabled.
Automatic iCloud syncs are minimal (contacts, calander & find my iPhone).
I've disabled multiple excessive Location Services, and no reason it should be running over night.
I've highly limited the notification center items... never wanted lots of them anyway.
I've removed/readded my Gmail account (only email setup)... not on Push, it's on Fetch.
Should I use "Do Not Disturb" mode overnight? Will that help?
Thanks.
Similar Messages
-
Questions about db_keep_cache_size and Automatic Shared Memory Management
Hello all,
I'm coming upon a server that I'm needing to pin a table and some objects in, per the recommendations of an application support call.
Looking at the database, which is a 5 node RAC cluster (11gr2), I'm looking to see how things are laid out:
SQL> select name, value, value/1024/1024 value_MB from v$parameter
2 where name in ('db_cache_size','db_keep_cache_size','db_recycle_cache_size','shared_pool_size','sga_max_size');
NAME VALUE VALUE_MB
sga_max_size 1694498816 1616
shared_pool_size 0 0
db_cache_size 0 0
db_keep_cache_size 0 0
db_recycle_cache_siz 0 0
e
Looking at granularity level:
SQL> select granule_size/value from v$sga_dynamic_components, v$parameter where name = 'db_block_size' and component like 'KEEP%';
GRANULE_SIZE/VALUE
2048
Then....I looked, and I thought this instance was set up with Auto Shared Mem Mgmt....but I see that sga_target size is not set:
SQL> show parameter sga
NAME TYPE VALUE
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 1616M
sga_target big integer 0
So, I'm wondering first of all...would it be a good idea to switch to Automatic Shared Memory Management? If so, is this as simple as altering system set sga_target =...? Again, this is on a RAC system, is there a different way to do this than on a single instance?
If that isn't the way to go...let me continue with the table size, etc....
The table I need to pin is:
SQL> select sum (blocks) from all_tables where table_name = 'MYTABLE' and owner = 'MYOWNER';
SUM(BLOCKS)
4858
And block size is:
SQL> show parameter block_size
NAME TYPE VALUE
db_block_size integer 8192
So, the space I'll need in memory for pinning this is:
4858 * 8192 /1024/1024 = 37.95.......which is well below my granularity mark of 2048
So, would this be as easy as setting db_keep_cache_size = 2048 with an alter system call? Do I need to set db_cache_size first? What do I set that to?
Thanks in advance for any suggestions and links to info on this.
cayenne
Edited by: cayenne on Mar 27, 2013 10:14 AM
Edited by: cayenne on Mar 27, 2013 10:15 AMJohnWatson wrote:
This is what you need,alter system set db_keep_cache_size=40M;I do not understand the arithmetic you do here,select granule_size/value from v$sga_dynamic_components, v$parameter where name = 'db_block_size' and component like 'KEEP%';it shows you the number of buffers per granule, which I would not think has any meaning.I'd been looking at some different sites studying this, and what I got from that, was that this granularity gave you the minimum you could set the db_keep_cache_size, that if you tried setting it below this value, it would be bumped up to it, and also, that each bump you gave the keep_cache, would be in increments of the granularity number....?
Thanks,
cayenne -
Oracle 9i Automatic PGA Memory Management
Hello,
my team and me, we are facing difficulties to change the size of the PGA used by our server processes for HASH JOIN, SORT... operators,
here you can see the results of "select * from v$pgastat":
[pgastat dynamic view results|http://pastebin.com/m210314dc]
We have been increasing consecutively our pga_aggregate_target parameter from 1.7 Gb initially to 4Gb then at the end 6Gb, the value of "Global memory bound" and " aggregate pga auto target" on the link above are still equal to 0.
I have been reading threads on the forum and documentation see below, I understand how the global memory manager (CKPT) computest the sql memory target and then the global memory bound, as far as I understand I can only "play" on the pga_aggregate_target value in order to increase the size of our PGAs (I exclude to play with hidden parameters).
- Joze Senegacnik: Advanced Management of working areas in Oracle 9i/10g : http://tonguc.yilmaz.googlepages.com/JozeSenegacnik-PGAMemoryManagementvO.zip
- Dageville Benoit and Zait Mohamed: SQL memory management in oracle 9i
Here different information that could be usefull:
OS: solaris 10 (db running in a non global zone)
Arch: 64-bit sparcv9 kernel modules
Physical memory: 32 Gb (being shared between all non global zones)
Oracle version: 9.2.0.5 32bits
Values of init parameters and hidden parameters that could be relevant:
[init parameters|http://pastebin.com/m40340cf4]
[hidden parameters|http://pastebin.com/m50d74c53]
Maybe useful queries:
over work areas views, I use the following script:
[wa_analysis.sql|http://pastebin.com/d606ebd9b]
and the result of it:
[result of script wa_analysis.sql|http://pastebin.com/m5f49a2e5]Joze Senegacnik wrote:
- either your sessions are using a lot of memory for storing variables like pl/sql arrays which is subtracted from automatic management: PGA_AGGREGATE_TARGET - (aggregated persistent area + a part of the run time area of all server processes)
- you are hitting a bug
- or maybe something elseI am really happy you come to this conclusion too, they are the same we made with my team and we have submitting to Oracle support via metalink SR 3-1216060641, we were asking if we hit the following bug (in note 1) or we leak about pl/sql or java... or else indeed,
note 1: PGA_AGGREGATE_TARGET Assigned Memory Is Left Unconsumed When Set High [ID 844542.1]
Joze Senegacnik wrote:
I would like to know:
1.) what were the values for global memory bound and autotarget immediately (or in short time) after the database restart or when you have increased them Just after the restart of the database and just after the change of P_A_T, we query v$pgastat immediately after and the value of global memory bound and auto target were equal to 0 byte,
2.) If you are able to change value of PGA_AGGREGATE_TARGET (P_A_T) to 10GB what happens with global memory bound and auto traget. They should be positive at least for a short time. As this is a dynamic parameter you can change it for a short time, run queries and set it back.We plan to do this tonight, we have an "heavy" ITIL change management procedures that allow us to make changes approved by change manager and only during night maintenance window on production system, I come back to you tomorrow. But we have been increasing from 1,7Gb to 4Gb to 6Gb, each time I have been querying v$sgastat in the next 2 mins and global memory bound and auto target were equal to 0 byte.
3.) Have you checked on the OS level how much memory are using server processes - do these numbers come along with what Oracle says. Not during problematic activities, meaning active work areas performing HASH-JOIN, SORT... operators,
unfortunately it is a production system, even if he performs poorly, we are not allowed to try or retry the poor queries, but if it comes again I'll do it,
during low activities, here the results paste with the scripts I used:
[pga processes info in oracle|http://pastebin.com/f2e540062]
I spooled the result rows of this previous script in /var/tmp/pga_processes.log then I loop over all processes pid and display pmap output anon info like this:
h5. cat /var/tmp/pga_processes.log | awk -F' ' '{print $5}' | xargs -n 1 -i pmap -x {}| grep -v 'Addres' |egrep 'Kb' 2>&1 > /var/tmp/pga_processes_os.log
then I merge line by line the two files with unix paste command, here the results:
[os and oracle pga informations|http://pastebin.com/f4135c8a6]
4.) How many server processes are running on you system in average/max and are you using just dedicated processes or also shared?in average 250, we are only using dedicated processes,
5.) At time of low activity is the global memory bound still 0 or becomes > 0. I have been querying every 15 min during more than 24 hours low activities, it still stay to 0,
5.) Are you experiencing paging/swapping on OS level?No, here orca figures for details:
[free memory|http://img509.imageshack.us/img509/5897/ohuron1asd2gauge1024xfr.png]
swap
[pagein pageout|http://img121.imageshack.us/img121/6946/ohuron1asd2gaugepginper.png]
[memory usage|http://img19.imageshack.us/img19/2213/ohuron1asd2gaugeppkerne.png]
6.) Please post the result of: select * from X$QESMMSGA ;during low activities, [results X$QESMMSGA|http://pastebin.com/f61df7093]
While you will be answering to my questions I'll try to figure out what we can do to properly diagnose the problem. As you are on 9i it is a little bit harder.I am really kind of your help, as we say in my country, "if you need tow arms one day to carry something, call me."
--Jeremy Baumont -
Oracle 11g AMM (Automatic Memory Management)
Hi All,
I have a very powerful server 24 Processors with 6 cores each and 74 GB RAM for my production database. The server will host only one production database. I wanted to use AMM for this database and allocate maximum memory to Oracle by setting memory_target. By default /dev/shm is set 37 GB but I wanted to increase it least 55 GB. I know I can get this changed by my system admin but I wanted to know how much memory should leave for OS?
Please help me on sizing this.
Thanks,
Arun SinghFrom MOS ID 169706.1
Automatic Memory Management
Starting with Oracle Database 11g, the Automatic Memory Management feature requires more shared memory (/dev/shm) and file descriptors. The shared memory should be sized to be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on the computer. To determine the amount of shared memory available, enter the following command: # df -k /dev/shm/
Note: MEMORY_MAX_TARGET and MEMORY_TARGET cannot be used when LOCK_SGA is enabled or with huge pages on Linux -
Oracle Automatic Memory Management
Are there any restrictions or best practices regarding the setting of Oracle Automatic and Manual Memory Management (in particular the setting of these parameters: SGA_TARGET, SGA_MAX_SIZE, MEMORY_TARGET, MEMORY_MAX_TARGET) on various Oracle instances on the same server/node/virtual machine. In other words can the memory management schemes be mixed among various Oracle instances on the same server/node/virtual machine. For example suppose a server houses three Oracle instances - inst01, inst02, inst03. Can inst01 and inst03 use automatic memory management and inst02 use manual memory management. Are there any restrictions or best practices that should be noted? If there are multiple Oracle instances on the same server, is it a requirement that they all follow the same memory management scheme or is it a best practice to do so? Obviously, the total memory requested for the Oracle instances combined would not exceed the total physical memory available on the server.
Note: we are currently using Oracle 11g R2 specifically 11.2.0.1 on Solarissbing52 wrote:
Are there any restrictions or best practices regarding the setting of Oracle Automatic and Manual Memory Management (in particular the setting of these parameters: SGA_TARGET, SGA_MAX_SIZE, MEMORY_TARGET, MEMORY_MAX_TARGET) on various Oracle instances on the same server/node/virtual machine. Not really or at least I am not aware of.
In other words can the memory management schemes be mixed among various Oracle instances on the same server/node/virtual machine. Each instance is going to work individually so the answer is yes .
For example suppose a server houses three Oracle instances - inst01, inst02, inst03. Can inst01 and inst03 use automatic memory management and inst02 use manual memory management.Yes.
Are there any restrictions or best practices that should be noted? If there are multiple Oracle instances on the same server, is it a requirement that they all follow the same memory management scheme or is it a best practice to do so?As I said, not that I am aware of. As long as you are able to accommodate the memory requirements under your installed RAM, you should be okay.
Obviously, the total memory requested for the Oracle instances combined would not exceed the total physical memory available on the server.Yep.
Note: we are currently using Oracle 11g R2 specifically 11.2.0.1 on SolarisPatch to the latest patchset which is 11203.
Aman.... -
Sort Area Size in Automatic memory management
Hello All
I am aware that the AREASIZE is ignored of the PGA_AGGREGATE_TARGET is set.
So how is it possible that if we incrase the SORT_AREA_SIZE, the performance improves?
does this necessarily mean that the PGA_AGGREGATE_TARGET was not set to a proper value that it instead used the SORT_AREA_SIZE instead?
thanksHi,
If you have set workarea_size_policy=auto then under the automatic PGA memory management mode, sizing of work
areas for all sessions becomes automatic and the AREASIZE parameters are
ignored by all sessions running in that mode.
In auto mode if you change any AREASIZE parameters will be ignored.
If you want to manually handle ARASIZE then turnoff the Automatic pga memory by setting workarea_size_policy=MANUAL and then your changes to parameter will take effect but it's advisable to set pga to automatic.
To check whether your pga is set proper or not check v$pga_target_advice view
SELECT round(PGA_TARGET_FOR_ESTIMATE/1024/1024) target_mb,
ESTD_PGA_CACHE_HIT_PERCENTAGE cache_hit_perc,
ESTD_OVERALLOC_COUNT
FROM V$PGA_TARGET_ADVICE;
This will give you how your pga is set.
chirag -
Confusion about Automatic Shared Memory Management
Hi,
Oracle Database 10g includes the Automatic Shared Memory Management feature which simplifies the SGA memory management significantly. To use Automatic Shared Memory Management, we have to set the SGA_TARGET initialization parameter to a nonzero value and the STATISTICS_LEVEL initialization parameter to TYPICAL or ALL.
Oracle Database 10g Rel. 2 documentation, in some places, says that:
If SGA_TARGET is specified, then the following FIVE memory pools are automatically sized:
* Buffer cache (DB_CACHE_SIZE)
* Shared pool (SHARED_POOL_SIZE)
* Large pool (LARGE_POOL_SIZE)
* Java pool (JAVA_POOL_SIZE)
* Streams pool (STREAMS_POOL_SIZE)
Ref.:
1. http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams192.htm
2. http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/memory.htm
3. Oracle Database 10g: New Features for Administrators - Student Guide
But in some places I found the following:
If SGA_TARGET is specified, then the buffer cache (DB_CACHE_SIZE), Java pool (JAVA_POOL_SIZE), large pool (LARGE_POOL_SIZE), and shared pool (SHARED_POOL_SIZE) memory pools are automatically sized.
Here you can see that Streams Pool is not included in the automatically sized pools.
Ref.:
1. http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14211/build_db.htm#sthref252
Also, according to Oracle Press' Book "OCP Oracle Database 10g: New Features for Administrators Exam Guide:
Under Automatic Shared Memory Management, the database manages the
following FOUR major components of the SGA, also known as the auto-tuned SGA
parameters:
■ Buffer cache (DB_CACHE_SIZE)
■ Shared pool (SHARED_POOL_SIZE)
■ Large pool (LARGE_POOL_SIZE)
■ Java pool (JAVA_POOL_SIZE)
It is important to understand that even under Automatic Shared Memory
Management, you still need to configure any SGA component other than the four
auto-tuned components. Following are the manually sized components of the SGA:
■ Redo Log Buffer
■ The KEEP and RECYCLE buffer caches (if specified)
■ The nonstandard block size buffer caches (if specified)
■ The new Streams pool SGA component
■ The new Oracle Storage Management (OSM) buffer cache, which is meant
for the optional ASM instance
Now my question is "IS Streams Pool an auto-tuned SGA parameter?"
Thanks in advance.
--Khan.Hi,
I would advise you to read Document I.D. Note:295626.1 on Oracle Metalink.
It states that
When enabled, it lets Oracle decide of the right size for some components of the SGA:
SHARED POOL
LARGE POOL
JAVA POOL
DB CACHE (using the DB_BLOCK_SIZE value)
The SGA_TARGET value will therefore define the memory size sharable between auto-tuned and manual parameters.
The manual parameters are:
DB_<KEEP/RECYCLE>CACHESIZE
DB_nK_CACHE_SIZE (non default block size)
LOG_BUFFER
FIXED SGA
STREAMS_POOL_SIZE
Adith -
Large SGA On Linux and Automatic Shared Memory Management problem
Hello
I use Oracle10gR2 in linux 32bit and I use http://www.oracle-base.com/articles/linux/LargeSGAOnLinux.php manual
for larger SGA it works fine but when I set sga_target parameter for using Automatic Shared Memory Management
I recieve this error
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-00824: cannot set sga_target due to existing internal settings, see alert
log for more information
and in alert log it has been wrote
Cannot set sga_target with db_block_buffers set
my question is when using db_block_buffers can't use Automatic Shared Memory Management ?
Is any solution for using both Large SGA and Automatic Shared Memory Management ?
thanks
Edited by: TakhteJamshid on Feb 14, 2009 3:39 AMTakhteJamshid wrote:
Do it means that when we use large SGA using Automatic Shared Memory Management is impossible ?Yes its true. An attempt to do so will result inthis,
>
ORA-00825: cannot set DB_BLOCK_BUFFERS if SGA_TARGET or MEMORY_TARGET is set
Cause: SGA_TARGET or MEMORY_TARGET set with DB_BLOCK_BUFFERS set.
Action: Do not set SGA_TARGET, MEMORY_TARGET or use new cache parameters, and do not use DB_BLOCK_BUFFERS which is an old cache parameter.>
HTH
Aman.... -
Premiere does not appear as an available app in my manager - why?
premiere does not appear as an available app in my manager - why? just downloaded the manager - want to try premiere before signin up, but it is not in my list. trial information specifically states I can try "every" app. running windows 8
9990films do you meet or exceed the system requirements for Premiere CC listed at https://www.adobe.com/products/premiere/tech-specs.html?
-
Verizon Media Manager will not start automatically with Windows, even though it is set to do so. This started with the latest update. I see that the desktop icon for Media Manager now has a security shield on it, and it requires UAC confirmation when you start it, which I don't remember the old version doing.
One thing I noticed, msconfig.exe shows that "C:\Program Files\Verizon\McciTrayApp.exe" is set to start at Windows startup, but the desktop icon used to start Media Manager manually has a target of ""C:\Program Files\Verizon\Verizon Media Manager\Release\Verizon Media Manager.exe" Verizon Media Manager".
I don't remember what the previous version was, but this one is 9.4.86. It asked me if I wanted to update it a few days ago, and I said yes.
I am running Windows 7 Home Premium.
Solved!
Go to Solution.Try setting the startup option to off and then to on again. It looks to be pointing to a wrong location.
Attached is a partial screen shot of my msconfig setting.
Attachments:
media manager startup cmd line.jpg 18 KB -
I have comcast email why is it not automatically updating on my phone and alerting me I received an email? It only updates when I open the email folder.
So I will just have to keep checking my mail folder? That's crazy, I did not have a problem with my Android. Is there a way to get around this? I have been waiting on an email alert and I keep forgetting to check my mail folder, this is very frustrating.
Thank you for your help -
when i try to open excel in mac I receive a message that there is not enough memory. Why s this?
As Excel is not an Apple product, I believe you will get more useful help by using Microsoft's support community for Office:Mac here:
Office for Mac forums
They are as active and helpful as these, and sometimes employees from the MS Mac Business Group are available for helping.
Be sure to show which version of Office:Mac you have when posting there. It can make s difference in advice offered. -
Why does the side bar not automatically show up when you first download apple iTunes? Really really bad design. It took 20 min to fine the setting that enable the side bar. ***? I could not access my iPod for 20 freakin min! Just show the **** side bar always! Maybe apple is too big and is starting to lose common sense.
Because Apple update iTunes to do it that way. Apple has not said why.
Tell Apple:
Apple - iTunes - Feedback -
10.0.01 version doesn't sign-in automatically... i look up password manager, it seems to it saves usernames and passwords, when i try to visit that website i am not automatically signed in and when i reopen mozilla it keeps on asking main password to sign-in all the time... it happened after mozilla updated itself... please help about it.. (i dont have problems like this in Opera browser)
mozilla fills user name when i click but after that it asks for main password (whats the purpose of remembering passwords if it will ask for main password)
by the way main password for password manager is of course useful but it şs useful whenever i want to use it not all the time i open mozilla .
and not all the time i open a website or forum which i often use...
there were no problems before it updated itself...
please tell me the solutionmy problem is not related with using main password or not...
in former versions of firefox i was automatically signed in to websites without any click... it wasnt asking me to sign-in (because my usernames and passwords were remembered-and saved in password manager)
in this version they are remembered again but i have to write first 2-3 letters of my username and it remembers my username then it remembers password...
for example when i clicked twitter.com my account and my homepage as automatically opened, but in this version when i click twitter.com it opens the sign-in page and i write first 2 letters of my user name it remembers name and password and then i signin
(difference i was at where i want to sign in with one click--- but in new version 1click for webpage-1 click for clicking to username are-1-2 letter writing to find my user name-1 click to remember password-1 click to sign in) an addition: also if i am using main password i am entering main password and click to sign-in
This can be little problem to u, but it is really annoying problem, 9-10 clicks more for each webpage which i wanted mozilla to remember my usernames and passwords... it also asks main password if i am using...
if i want to visit 5-6 different websites it means 70-80 clicks more and 50-60 letters typing according to your main password .. (in opera and mozillas former versions it is just 5-6 clicks)
so main problem is the cookies were remembered in all the sessions but after it updated to v.10.0.1 expiry date of cookies of same websites that i visit are just for one session... it is not related with the websites and their servers that i visit because if so how can Opera remembers all the time... -
Why can't I download any new software? download manager doeas not work
Why can't I download any new software? download manager does not worK
Hi,
I am already a member of creative cloud for over 12 months,
I do not want the trial software, I want the software I am entitled to through the creative cloud.
I already have photoshop, illustrator, dreamweaver and others, however, after signing in and going to the link below, nothing happens when I click the download button.
https://creative.adobe.com/products/lightroom
Len
Maybe you are looking for
-
Fetch value from custom container in WD Abap component
Hi all, I am using a web service to call a RFC function module into my web dynpro component.When I create a new service then a new custom controller will created and in this controller a method is created for FM. Now my query is, when I run the WD ap
-
Can i use a charger from a pre-2011 macbook pro on my 2012 macbook pro?
left my charger out of state, it's being shipped but in the meantime i need to charge my laptop! a friend has a charger that i think is from a 2011-2010 macbook pro. will this work? is it bad for my computer?
-
So, I upgraded to iOS 5.1 on my iPad 2 today. I tried to mirror to my HDTV via my Apple TV. I saw the little icon and selected my TV. I did not see anything but was able to hear something. Now I cannot see the icon any more. Ideas? Thanks.
-
JTextPane - HTML Formatted text Overlap!!!!!!!!!!
The formatted text overlaps in the printed sheet, but it is displayed correctly in the JTextPane Code is below: import java.awt.*; import javax.swing.*; import java.awt.print.*; class Test implements Printable { static JTextPane pane; static public v
-
I installed PES 2012 on my mac. It succeed, but when I click it in order to open it, the apps appear just for a moment on the dock then suddenly disappear. I'm using Mac Pro OS 10.6.8.