From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: rob.leadbeater@lynx.co.uk Newsgroups: gmane.os.tru64.managers Subject: Oracle memory tuning Date: Mon, 28 Feb 2005 12:18:51 +0000 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1109593045 5752 80.91.229.2 (28 Feb 2005 12:17:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2005 12:17:25 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Feb 28 13:17:24 2005 Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1D5jos-0000vf-0r for gotm-tru64-unix-managers@gmane.org; Mon, 28 Feb 2005 13:16:14 +0100 Original-Received: (qmail 17002 invoked by uid 5); 28 Feb 2005 12:20:09 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 16987 invoked by uid 49501); 28 Feb 2005 12:20:09 -0000 Original-Received: from rob.leadbeater@lynx.co.uk by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 1.26742 secs); 28 Feb 2005 12:20:09 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 28 Feb 2005 12:20:08 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0ICM006MIFLDUP@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 28 Feb 2005 07:20:06 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0ICM00E02FKX04@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 28 Feb 2005 07:19:54 -0500 (EST) Original-Received: from mailsrv03.lynx.co.uk (mailhost.lynx.co.uk [194.203.251.189]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0ICM00A4DFKUPC@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 28 Feb 2005 07:19:45 -0500 (EST) Original-Received: from ocsi04.lynx.co.uk (unverified [10.1.10.54]) by mailsrv03.lynx.co.uk (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Mon, 28 Feb 2005 12:19:42 +0000 Original-Received: from w022797.lynx.co.uk by ocsi04.lynx.co.uk with ESMTP id 5373391109593131; Mon, 28 Feb 2005 12:18:51 +0000 (GMT) Original-To: tru64-unix-managers@ornl.gov X-Mailer: Oracle Connector for Outlook 9.0.4.2 60310 (10.0.6515) X-Envelope-From: X-Sent-Folder-Path: Sent Items X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on email.cind.ornl.gov X-Spam-Level: X-MailScanner-To: gotm-tru64-unix-managers@gmane.org Xref: main.gmane.org gmane.os.tru64.managers:8078 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8078 Hi managers, In an effort to increase the performance of our Oracle database cluster, we= recently added an additional 4GB memory into each node. However this morni= ng for certain operations we're actually seeing much lower performance than= we were prior to adding the memory :-( This is a two node ES47 memory channel cluster running 5.1B PK4. Each ES47 consists of a single dual CPU building block, with 12GB of memory= , (2 x 4GB) + (2 x 2GB). Prior to upgrading memory was 8GB (4 x 2GB) The cluster is running Oracle 9i and 10g RAC. There's one 9i instance on ea= ch node and one 10g instance on each node. SGA on the 9i instances is 656MB. SGA on the 10g instances is 6GB. A top output shortly after we added the memory, indicated that we may not b= e using all of the additional memory correctly: # top load averages: 6.12, 6.33, 6.33=20 22:01:44 200 processes: 9 running, 34 waiting, 69 sleeping, 84 idle, 4 zombie CPU states: 83.2% user, 0.0% nice, 16.5% system, 0.2% idle Memory: Real: 8093M/12G act/tot Virtual: 8239M use/tot Free: 32M PID USERNAME PRI NICE SIZE RES STATE TIME CPU COMMAND 1155425 oracle 62 0 6251M 7618K run 9:37 75.30% oracle 1156141 oracle 49 0 6281M 38M run 3:06 23.30% oracle 1104580 oracle 42 0 7100M 272M WAIT 87:54 19.90% oracle 1156909 oracle 42 0 6311M 11M WAIT 0:12 18.90% oracle 1146081 root 44 0 333M 331M run 17:32 8.90% vdump 1050883 oracle 44 0 6263M 15M run 13:20 5.50% oracle 1050879 oracle 45 0 6263M 15M sleep 13:19 5.40% oracle 1156319 oracle 46 0 6253M 8658K sleep 0:09 5.20% oracle 1050875 oracle 45 0 6263M 15M sleep 1:28 4.80% oracle 1048576 root 0 0 13G 268M run 56:20 4.70% kernel idle 1050881 oracle 44 0 6263M 15M sleep 13:21 4.30% oracle 1050877 oracle 44 0 6263M 15M sleep 13:06 3.90% oracle 1052823 oracle 44 0 817M 10M run 8:27 2.10% oracle 1052819 oracle 44 0 817M 10M sleep 7:34 1.90% oracle 1050924 oracle 44 0 6253M 7659K sleep 0:17 0.70% oracle Current kernel parameters follow at the end of the mail (I think I've inclu= ded the relevant ones) I've been trying to find some definitive tuning guides, but keep finding co= nflicting information. For example, Oracle metalink note 169706.1 states that PER_PROC_DATA_SIZE s= hould be set to 335544320 (320MB), whereas the HP doc here: http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/ARH9GCTE/TN= RCLXXX.HTM says it should be set to the amount of RAM... Could someone give me some pointers as to how best to tune this beast, befo= re it gets resigned to the skip. Cheers, Rob # sysconfig -q proc proc: max_proc_per_user =3D 1024 max_threads_per_user =3D 4096 per_proc_stack_size =3D 536870912 max_per_proc_stack_size =3D 536870912 per_proc_data_size =3D 1073741824 max_per_proc_data_size =3D 4294967296 max_per_proc_address_space =3D 8589934592 per_proc_address_space =3D 8589934592 executable_stack =3D 0 autonice =3D 0 autonice_time =3D 600 autonice_penalty =3D 4 open_max_soft =3D 4096 open_max_hard =3D 4096 ncallout_alloc_size =3D 8192 round_robin_switch_rate =3D 60 sched_min_idle =3D 0 give_boost =3D 1 maxusers =3D 4096 num_wait_queues =3D 4096 num_timeout_hash_queues =3D 4096 enhanced_core_name =3D 0 enhanced_core_max_versions =3D 16 exec_disable_arg_limit =3D 0 dump_cores =3D 1 dump_setugid_cores =3D 0 executable_data =3D 0 # sysconfig -q ipc ipc: msg_max =3D 8192 msg_mnb =3D 16384 msg_mni =3D 64 msg_tql =3D 40 shm_max =3D 4278190080 shm_min =3D 1 shm_mni =3D 1024 shm_seg =3D 256 sem_mni =3D 16 sem_msl =3D 25 sem_opm =3D 10 sem_ume =3D 10 sem_vmx =3D 32767 sem_aem =3D 16384 sem_broadcast_wakeup =3D 0 max_kernel_ports =3D 314912 ssm_threshold =3D 8388608 ssm_enable_core_dump =3D 1 shm_allocate_striped =3D 1 shm_enable_core_dump =3D 1 pshared_hash_size =3D 2048 # sysconfig -q vm vm: ubc_minpercent =3D 10 ubc_maxpercent =3D 100 ubc_borrowpercent =3D 20 ubc_prewritemult =3D 2 ubc_approxlow =3D 60 ubc_approxhigh =3D 10 ubc_pgscan_drop_lock_cnt =3D 10 ubc_scan_pglock_cnt =3D 3 vm_max_wrpgio_kluster =3D 32768 vm_max_rdpgio_kluster =3D 16384 vm_cowfaults =3D 4 vm_segmentation =3D 1 vm_ubcpagesteal =3D 24 vm_ubcfilemaxdirtypages =3D 4294967295 vm_ubcdirtypercent =3D 40 ubc_maxdirtywrites =3D 5 ubc_maxdirtymetadata_pcnt =3D 70 ubc_kluster_cnt =3D 32 vm_ubcseqstartpercent =3D 80 vm_ubcseqpercent =3D 10 ubc_overflow =3D -1 vm_csubmapsize =3D 1048576 vm_ubcbuffers =3D 256 vm_syncswapbuffers =3D 128 vm_asyncswapbuffers =3D 4 vm_clustermap =3D 1048576 vm_clustersize =3D 65536 vm_syswiredpercent =3D 80 vm_troll_percent =3D 4 vm_inswappedmin =3D 1 vm_page_free_target =3D 1024 vm_page_free_swap =3D 527 vm_page_free_hardswap =3D 16384 vm_page_free_min =3D 30 vm_page_free_reserved =3D 20 vm_page_free_optimal =3D 527 vm_swap_eager =3D 0 swapdevice =3D /dev/disk/dsk2b vm_page_prewrite_target =3D 2048 vm_ffl =3D 1 ubc_ffl =3D 1 vm_rss_maxpercent =3D 100 anon_rss_enforce =3D 0 vm_rss_block_target =3D 527 vm_rss_wakeup_target =3D 527 kernel_stack_pages =3D 2 vm_min_kernel_address =3D 18446741891866165248 malloc_percpu_cache =3D 1 vm_aggressive_swap =3D 0 new_wire_method =3D 1 vm_segment_cache_max =3D 50 gh_chunks =3D 0 rad_gh_regions[0] =3D 0 snip rad_gh_regions[1-62] =3D 0 rad_gh_regions[63] =3D 0 gh_min_seg_size =3D 4194304 gh_fail_if_no_mem =3D 1 vm_bigpg_enabled =3D 0 vm_bigpg_anon =3D 64 vm_bigpg_seg =3D 64 vm_bigpg_shm =3D 64 vm_bigpg_ssm =3D 64 vm_bigpg_stack =3D 64 vm_bigpg_thresh =3D 6 vm_bigpg_factor =3D 1 vm_l3gh_anon =3D 1 vm_l3gh_shm =3D 1 vm_l3gh_ssm =3D 1 private_cache_percent =3D 0 gh_keep_sorted =3D 0 gh_front_alloc =3D 1 replicate_user_text =3D 1 enable_yellow_zone =3D 0 boost_pager_priority =3D 0 gsm_enabled =3D 1 kstack_free_target =3D 5 wire_audit_count =3D 0 vm_prepop_percent =3D 100 This message is intended only for the use of the person(s) ("The intended Recipient(s)") to whom it is addressed. It may contain information which is privileged and confidential within the meaning of applicable law. If you are not the intended recipient, please contact the sender as soon as possible. The views expressed in this communication are not necessarily those held by LYNX Express Limited.