From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mohamed K. Ahmed" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: (kinda) Tuning swap/vm system parameters Date: Thu, 26 Jun 2003 12:31:36 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <2cf47032.70322cf4@vsc.teksystems.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1056645161 13818 80.91.224.249 (26 Jun 2003 16:32:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2003 16:32:41 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jun 26 18:32:40 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19VZf4-0003Vt-00 for ; Thu, 26 Jun 2003 18:31:51 +0200 Original-Received: (qmail 2295 invoked by uid 5); 26 Jun 2003 16:31:59 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 2279 invoked by uid 49493); 26 Jun 2003 16:31:59 -0000 Original-Received: from mkahmed@vsc.teksystems.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-3.3/5.0):. Processed in 0.588217 secs); 26 Jun 2003 16:31:59 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 26 Jun 2003 16:31:58 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HH300GYUKL2HM@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 26 Jun 2003 12:31:57 -0400 (EDT) Original-Received: from mail.vsc.teksystems.com (mail.vsc.teksystems.com [63.73.230.193]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HH3009QQKL0YW@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 26 Jun 2003 12:31:48 -0400 (EDT) Original-Received: from vsc.teksystems.com ([127.0.0.1]) by mail.vsc.teksystems.com (Netscape Messaging Server 4.1) with ESMTP id HH3KKO00.O0L for ; Thu, 26 Jun 2003 12:31:36 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Netscape Webmail Content-language: en Content-Disposition: inline X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:4674 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4674 Well, thanks for the responces from Alan Davis, Selden Ball, Allan Rollow, Brian Staab and Grant Schoep. I am in the process now of increasing the swap space to at least double the physical memory as recommended. In the time being, I have changed the swap mode to lazy mode (set vm_swap_eager to 0 ), and no problem thus far, installed top, monitor, the /usr/local/bin/top output is around the following figures load averages: 1.13, 0.71, 0.71 120 processes: 3 running, 47 sleeping, 69 idle, 1 zombie CPU states: 44.9% user, 0.2% nice, 4.8% system, 49.9% idle Memory: Real: 1170M/4506M act/tot Virtual: 5201M use/tot Free: 2725M I will continue to monitor the system and update the list with any new foundings. Thenks -Mohamed ----- Original Message ----- From: "Mohamed K. Ahmed" Date: Friday, June 20, 2003 2:41 pm Subject: Tuning swap/vm system parameters > Hello all, > The system is ES40, Tru64 Unix version 5.1 PK 5, 4 CPUs and 4GB > physical memory > > I just have a question, why do I have always teh out put of swapon > -s almost the same? > > # swapon -s > Swap partition /dev/disk/dsk0b (default swap): > Allocated space: 665742 pages (5.08GB) > In-use space: 16 pages ( 0%) > Free space: 665726 pages ( 99%) <--------- This one > > > Total swap allocation: > Allocated space: 665742 pages (5.08GB) > Reserved space: 361349 pages ( 54%) > In-use space: 16 pages ( 0%) > Available space: 304393 pages ( 45%) > # > > And some times when there is a lot of developers on the system, > the Reserved swap space coes up to 90% without the 99% of Fre Space > changing? > Do I need to Allocate more swap or tune the vm kernel parameters? > The sysconfig vm and proc parameters follow > # sysconfig -q vm > vm: > ubc_minpercent = 10 > ubc_maxpercent = 70 > ubc_borrowpercent = 20 > vm_max_wrpgio_kluster = 32768 > vm_max_rdpgio_kluster = 16384 > vm_cowfaults = 4 > vm_segmentation = 1 > vm_ubcpagesteal = 24 > vm_ubcfilemaxdirtypages = 4294967295 > vm_ubcdirtypercent = 10 > ubc_maxdirtywrites = 5 > vm_ubcseqstartpercent = 50 > vm_ubcseqpercent = 20 > vm_csubmapsize = 1048576 > vm_ubcbuffers = 256 > vm_syncswapbuffers = 128 > vm_asyncswapbuffers = 4 > vm_clustermap = 1048576 > vm_clustersize = 65536 > vm_syswiredpercent = 80 > vm_troll_percent = 4 > vm_inswappedmin = 1 > vm_page_free_target = 2048 > vm_page_free_swap = 522 > vm_page_free_hardswap = 16384 > vm_page_free_min = 20 > vm_page_free_reserved = 10 > vm_page_free_optimal = 522 > vm_swap_eager = 1 <----------------- > swapdevice = /dev/disk/dsk0b > vm_page_prewrite_target = 2048 > vm_ffl = 1 > ubc_ffl = 1 > vm_rss_maxpercent = 100 > anon_rss_enforce = 0 > vm_rss_block_target = 522 > vm_rss_wakeup_target = 522 > dump_user_pte_pages = 0 > kernel_stack_pages = 0 > vm_min_kernel_address = 18446741891866165248 > malloc_percpu_cache = 1 > vm_aggressive_swap = 0 <--------- > new_wire_method = 1 > vm_segment_cache_max = 50 > gh_chunks = 0 > rad_gh_regions[0] = 0 > gh_min_seg_size = 8388608 > gh_fail_if_no_mem = 1 > private_cache_percent = 0 > gh_keep_sorted = 0 > gh_front_alloc = 1 > replicate_user_text = 1 > enable_yellow_zone = 0 > boost_pager_priority = 0 > kstack_free_target = 5 > # > > # sysconfig -q proc > proc: > max_proc_per_user = 1024 > max_threads_per_user = 2048 > per_proc_stack_size = 8388608 > max_per_proc_stack_size = 33554432 > per_proc_data_size = 2684354560 <------------ > max_per_proc_data_size = 2684354560 <------------ > max_per_proc_address_space = 5453758464 <------------ > per_proc_address_space = 5453758464 <------------ > executable_stack = 0 > autonice = 0 > autonice_time = 600 > autonice_penalty = 4 > open_max_soft = 4096 > open_max_hard = 4096 > ncallout_alloc_size = 8192 > round_robin_switch_rate = 0 > sched_min_idle = 0 > give_boost = 1 > maxusers = 256 > num_wait_queues = 256 > num_timeout_hash_queues = 256 > enhanced_core_name = 0 > enhanced_core_max_versions = 16 > exec_disable_arg_limit = 0 > dump_cores = 1 > dump_setugid_cores = 0 > # > > -Mohamed