[solved] Setting up swap space

I didn't set up any swap space on my girlfriend's computer, and she's constantly topping out her RAM.  I know how to resize ext3 and make swap space, but how do I have it enabled every time on bootup?  Or a swapfile, is it as effective?  How do I make a swap file?
Last edited by synthead (2008-04-12 03:41:25)

bender02 wrote:For automatic enabling swap at boot, just add it to /etc/fstab. I remember reading about swapfile/swap partition; the only thing that matters is where physically on the drive, and how scattered, is the swapfile/partition. To make it in the file, just create an empty file (with dd)... http://www.redhat.com/docs/manuals/linu … dding.html
That was so easy to do!!
Thank you for the very helpful link, it almost did it by itself!

Similar Messages

  • [Solved]-Help me swap Space key with alt gr key

    My laptop is acer 4735, the Space key was dead. I've trying swap Space key with Alt Gr key but it's not success! The Alt Gr keycode is 100 and space is 65. What's can I do now
    Last edited by Narga (2013-03-01 09:12:25)

    Narga wrote:What's can I do now
    Follow the instructions on the wiki: https://wiki.archlinux.org/index.php/Ex … board_Keys

  • OUI complains about zero swap space? [solved]

    I am upgrading my OAS 10.1.2.0.2 to 10.1.2.2.0.
    When I start the OUI that is part of patch 4960210, it reports the following:
    Checking swap space: 0 MB available, 1535 MB required. Failed <<<<
    I cannot continue the installation.
    I am installing on Windows XP Professional (this is my personal development instance). My laptop has 4 disks, C:, D:, E:, G:. OAS is installed on E: and this is where I unzipped the OUI. The C:, D:, and E: drives each have a system managed paging file that have pagefile.sys files of 2,088,308 KB in size.
    Free space is: C: = 2.84 GB, D: = 3.73 GB, E: = 22.1 GB.
    How can I overcome this check?
    Message was edited by:
    Angrydot

    I manually set 1600 MB swap spaces on my C: and E: drives and the OUI passed this check.
    Apparently, the pagefile.sys remains after a reboot but is not an indication of the amount of swap space allocated. maybe Windows does not allocate swap space until it is needed when the virtual memory is system managed.
    Anyway, set the swap space manually to the amount needed by OUI. I will set it back to system managed after the install.

  • Swap Space Recommendations

    Hi,
    Is there a recommendation when it comes to setting the swap space for the system running the endeca server?
    We are using EID 2.3 on Linux.
    Our machines are currently freezing once the swap space gets consumed.
    Thanks,
    Will

    Will,
    Is the machine running Endeca Server also receiving incremental updates or does your solution operate as more of a "kill and fill" operation where the index is being fully loaded each time?
    Some other information that would be helpful would be the size of your index and the amount of RAM available on the machine. If you're not comfortable sharing that, a ratio would also suffice (i.e. I have 48GB of RAM and my index size on disk is 12GB so the ratio of RAM to index size is 4:1).
    Typically, I've seen the "high water mark" of addressable memory reach about 2 to 2.5x the index size. Keep in mind that it only ratchets up to that level on rare occasions when an index that has been in use for a while (warm cache) is in the final stages of a bulk update, the usual running amount is much lower. And of course, swap should only come into play when your available memory is constraining the system.
    Hope that helps,
    Patrick Rafferty
    Branchbird

  • How much swap space should I allocate? [SOLVED]

    Hey guys,
    I am planning on installing Arch Linux KDE on my Lenovo Y470: I5,4 gig ram, Nvidia gt 540M. How much of swap space should I have ?
    And I could use some clarification on "rolling release" as to what it means :-)
    Thanks
    Last edited by pyarch (2011-10-01 03:18:43)

    karol wrote:
    The packages get updated to whatever the upstream calls stable release. You get some updated packages every day.
    There's no Arch Release, but we do have an iso you use to install the system for the first time.
    My today's update:
    [2011-09-30 16:41] Running 'pacman -Syu'
    [2011-09-30 16:41] synchronizing package lists
    [2011-09-30 16:42] starting full system upgrade
    [2011-09-30 16:42] upgraded vim-runtime (7.3.294-1 -> 7.3.322-1)
    [2011-09-30 16:42] upgraded vim (7.3.294-1 -> 7.3.322-1)
    Ok, thanks alot
    fingers crossed, hope my installation goes well

  • File system full.. swap space limit.

    When i try to install Solaris 8x86 i recieve the following error.
    warning:/tmp:file system full, swap space limit exeeded
    Copying mini-root to local disk. Warning &pci@0,0&pci/ide@7,1&ide@1 ata:
    timeout: abort request, target 0 lun 0
    retrying command .. done
    copying platform specific files .. done , i have a 46 Gb IBM DTLA45 HD
    ,the solaris partition was set to 12 Gb , swap to 1,2 Gb .
    After a while I recieve Warning:/tmp/:file system full,swap space limit exeeded. , Why?
    I have already used the 110202 patch for the Harddrive.
    How should I solve this?
    Thanks
    \DJ

    Hi,
    Are you installing using the Installation CD?
    If so, try booting and installing with the Software 1 of 2 CD.
    Hope that helps.
    Ralph
    SUN DTS

  • Swap space problem on Windows XP

    I'm trying to install BI Publisher on Windows XP from a zip file downloaded last week (version 10.1.3.3.2). However after starting setup.exe in the install directory I get the message that my swap space = 0 Mb while 500 Mb is required. After this the installation procedure quits.
    I haven't got a clue as what the installer is referring to (swap on windows?) but I have plenty of room om my two (logical) disks, no spaces in the directory name from which I start the installer (D:\download\bipublisher\Windows\OBI\install) and about 1.5 Gb of memory free.
    Any hints what to do would be appreciated.
    tia,
    Martin

    Hi Mjb001,
    In computer operating systems that have their main memory divided into pages, paging (sometimes called swapping) is a transfer of pages between main memory and an auxiliary store, such as hard disk drive.[1] Paging is an important part of virtual memory implementation in most contemporary general-purpose operating systems, allowing them to easily use disk storage for data that does not fit into physical RAM. Paging is usually implemented as a task built into the kernel of the operating system.
    Windows 3.x creates a hidden file named 386SPART.PAR or WIN386.SWP for use as a swap file. It is generally found in the root directory, but it may appear elsewhere (typically in the WINDOWS directory). Its size depends on how much swap space the system has (a setting selected by the user under Control Panel → Enhanced under "Virtual Memory"). Please check this file.
    Regards,
    Amit Deshpande
    Persistent Systems Ltd.

  • Available swap space problem in solaris 10

    Dear All,
    Currently I am facing a most interesting problem regarding swap space.
    We have assigned mirrored slice swap space with 20G size. But when we are asking for swap space it is only showing around 2GB.
    1. Please have the swap area:
    root@palash # swap -l
    swapfile dev swaplo blocks free
    /dev/md/dsk/d1 85,1 16 41945456 35002784
    root@palash # swap -s
    total: 53562072k bytes allocated + 5689008k reserved = 59251080k used, 615704k available
    2. Please have the metastat output:
    root@palash # metastat d1
    d1: Mirror
    Submirror 0: d11
    State: Okay
    Submirror 1: d21
    State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 41945472 blocks (20 GB)
    d11: Submirror of d1
    State: Okay
    Size: 41945472 blocks (20 GB)
    Stripe 0:
    Device Start Block Dbase State Reloc Hot Spare
    c0t0d0s1 0 No Okay Yes
    d21: Submirror of d1
    State: Okay
    Size: 41945472 blocks (20 GB)
    Stripe 0:
    Device Start Block Dbase State Reloc Hot Spare
    c0t1d0s1 0 No Okay Yes
    3. Here is /etc/vfstab entry for swap:
    /dev/md/dsk/d1 - - swap - no -
    4. But when we checked swap space using df command:
    root@palash # df -h
    Filesystem size used avail capacity Mounted on
    /dev/md/dsk/d0 18G 7.7G 9.9G 44% /
    /devices 0K 0K 0K 0% /devices
    ctfs 0K 0K 0K 0% /system/contract
    proc 0K 0K 0K 0% /proc
    mnttab 0K 0K 0K 0% /etc/mnttab
    swap                   1.7G   1.7M   1.7G     1%    /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    sharefs 0K 0K 0K 0% /etc/dfs/sharetab
    /platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
    18G 7.7G 9.9G 44% /platform/sun4u-us3/lib/libc_psr.so.1
    /platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
    18G 7.7G 9.9G 44% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 1.7G 184K 1.7G 1% /tmp
    swap 1.7G 64K 1.7G 1% /var/run
    /dev/dsk/c2t40d0s4 20G 20M 19G 1% /redo2
    /dev/dsk/c2t40d0s1 276G 223G 50G 82% /oradata2
    /dev/dsk/c3t40d0s3 195G 198M 193G 1% /restore
    /dev/dsk/c2t40d0s0 276G 216G 57G 80% /oradata1
    /dev/dsk/c2t40d0s5 59G 60M 58G 1% /system1
    /dev/dsk/c3t40d0s0 276G 220G 53G 81% /index1
    /dev/md/dsk/d3 30G 24G 5.7G 81% /oracle
    /dev/dsk/c3t40d0s1 197G 53G 142G 28% /archive1
    /dev/dsk/c2t40d0s3 20G 20M 19G 1% /redo1
    /vol/dev/dsk/c0t6d0/disk1
    0K 0K 0K 0% /cdrom/disk1
    Please help me to indentify the reason.

    918597 wrote:
    Hello,
    Thanks for your reply.
    But I am not clear about your findings as we have around 64GB physical RAM in my machine.
    My question is that if we mount 20GB swap partition, then how we can see this is around less than 2 GB in df -h command.
    And even in swap -s command, this is showing same problem.
    What might be reason behind this????
    //PalashWell no-one else has anwered ... so its back to me.....
    Hmmm ... i would use the word observations rather than findings .... I am not on an old root explotation expedition all over our server .. merely observing on the morsels you show me ....
    Please be aware I may not be totally technically correct or be using right terminology on what follows so I welcome corrections ....
    Your machine has 64GB Memory, and a 20 GB swap file, therefore has the ability up to support 84GB total (Virtual) Memory ofr it's processes/buffers.
    The reason little swap is free (let us say 2GB ... thoug it may be 600m) is theat processes/buffers have a virutal memory requirement of 84GB-2GB = 82Gb.
    ... So rather than wondering about how come 2GB is left, start thinking about ow 82GB is being used.
    ...... Particularly with databases oracle RDBMS; mysql etc a big influencing factor can be how much memory is allocated its memory structures.
    .......... And a DBA may set these extremely high (memory_max / innodb-buffer-pool-size etc etc).
    ps -ef will show the (virtual) 'size' for individual processes
    prstat -a may help show what is going on (but may double account some things):
    ipcs -a would show the allocation for the oracle RDBMS memory_area,
    echo ::memstat | mdb -k ### may help ... but i have seen accounts of it taking ages to run.
    I'd also check kstat zfs ... but your not using zfs so no need to bother.
    .... You may need to show some evidence of how your applications are consuming virutal memory for someone to help you futher ... but if you do htis who may answer your own quesiton.

  • JVM Crash OutOfMemory Chunk::new Out Of swap Space

    Hi !
    We are currently experiencing a problem on both JRE-1.5.0_15 and JRE-1.6.0_7. We have a JEE application running with EJB2 on JBoss 423 that we have migrated to EJB3 on JBoss5. The server is Windows 2003 SP2 server running in 32 bits mode (with /3GB option in boot.ini) is set up with 4GB memory and 4GB paging.
    Before migration, this app runs perfectly on JBoss 423 compiled on JDK5 with runtime JRE5 and JRE6 (not at the same time though) up to 50 simulatneous users on a single JBoss instance.
    After migration to EJB3, we are experiencing this error as of 5 simultaneous users :
    # java.lang.OutOfMemoryError: requested 2292728 bytes for Chunk::new. Out of swap space?
    Current thread (0x54092800):  JavaThread "CompilerThread0" daemon [_thread_in_native, id=4092, stack(0x54280000,0x542d0000)]
    Stack: [0x54280000,0x542d0000]
    [error occurred during error reporting (printing stack bounds), id 0x80000001]
    Current CompileTask:
    C2:4692      com.mycompany.myproduct ...These are our JVM options for memory:
    jvm_args: -Dprogram.name=pdm.bat -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGCWe don't have this problem if we force JVM options so that it only runs in interpreted mode (-Xint). We also have created a file with the list of methods we want to keep out of the JIT. With this option, the server runs longer but it eventualy crashes.
    So we reckon this is a JIT issue on the App Server. I have posted a thread on JBoss forum but they recommended me to open one here.
    So I have modified the JVM options to increase the Perm size :
    jvm_args: -Dprogram.name=pdm.bat -Xms1024m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+Dis
    ableExplicitGCIn that case, JBoss crashes at startup time :
    # An unexpected error has been detected by Java Runtime Environment:
    # java.lang.OutOfMemoryError: requested 35608 bytes for Chunk::new. Out of swap space?
    #  Internal Error (allocation.cpp:218), pid=5756, tid=8176
    #  Error: Chunk::new
    # Java VM: Java HotSpot(TM) Server VM (10.0-b23 mixed mode windows-x86)
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    ---------------  T H R E A D  ---------------
    Current thread (0x64142800):  JavaThread "CompilerThread0" daemon [_thread_in_native, id=8176, stack(0x64330000,0x64380000)]
    Stack: [0x64330000,0x64380000]
    [error occurred during error reporting (printing stack bounds), id 0x80000001]
    Current CompileTask:
    C2:1420  !   org.jboss.ejb3.Ejb3Deployment.deployElement(Ljava/io/InputStream;Lorg/jboss/ejb3/Ejb3Ha
    ndlerFactory;Ljavax/naming/InitialContext;)V (66 bytes)
    Heap
    PSYoungGen      total 217472K, used 176224K [0x539d0000, 0x639d0000, 0x639d0000)
      eden space 170432K, 97% used [0x539d0000,0x5dbec148,0x5e040000)
      from space 47040K, 21% used [0x60be0000,0x615dc210,0x639d0000)
      to   space 44672K, 0% used [0x5e040000,0x5e040000,0x60be0000)
    PSOldGen        total 786432K, used 200494K [0x239d0000, 0x539d0000, 0x539d0000)
      object space 786432K, 25% used [0x239d0000,0x2fd9b9b0,0x539d0000)
    PSPermGen       total 524288K, used 39978K [0x039d0000, 0x239d0000, 0x239d0000)
      object space 524288K, 7% used [0x039d0000,0x060da870,0x239d0000)So I have reduced heap size
    jvm_args: -Dprogram.name=pdm.bat -Xms768m -Xmx768m -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+Dis
    ableExplicitGCand then it works much longer (can reach 20 users ...) before, again, eventually crashing.
    I have reported the error to http://java.sun.com/webapps/bugreport/crash.jsp but I haven't heard from it as yet ...
    Any recommendation to fix this issue ? Many thanks in advance for your help !

    I recently experienced a similar issue on HP-UX 11iv2 with WebLogic 9.1 and HP JDK 1.5, and we were also using the CMS (Concurrent Mark Sweep) GC. I was able to resolve the issue by forcing the size of the Survivor Area using the -XX:SurvivorRatio=n parameter. By setting this to a value lower than the default (I think 25) it forces the Survivor Area to be a larger percentage of the New Generation, and hence larger in size. I found that I needed at least 8MB, but we have a pretty large application, so you might get by with significantly less.
    As it stands, your New Gen will be 25% (default, I think) of you Xms, and I think the default SurvivorRatio is 25. The tricky part is the calculation using the SurvivorRatio. Since there are two Survivor Areas, if -XX:SurvivorRatio=25, then each Survivor Area will be 1/27 of New Gen. Anyhow, it's confusing, but you can easily verify these numbers online, and do the math yourself, but hopefully you get the point.
    Obviously, I can't guarantee anything, but you might want to give it a try since my symptoms were extremely similar.

  • Database Instance Using Swap Space even When There is Plenty of Free RAM

    Hi,
    I am facinga strange issue in oracle on solaris 5.10
    Platform:solaris 5.10
    Database version:11.2.0.1.0
    Our database Instance Using Swap Space even When There is Plenty of Free RAM.
    We have 80GB of physical RAM, 32GB is set to oracle SGA_MAX_SIZE
    memory parameters:
    memory_max_target big integer 32G
    memory_target big integer 32G
    sga_max_size big integer 32G
    sga_target big integer 32G
    but still oracle is taking memory from swap even though we have enough physical memory.
    please find the top output
    load averages: 0.09, 0.18, 0.84 01:07:49
    134 processes: 133 sleeping, 1 on cpu
    CPU states: 99.4% idle, 0.4% user, 0.3% kernel, 0.0% iowait, 0.0% swap
    Memory: 80G real, 69G free, 35G swap in use, 49G swap free
    PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
    1052 oracle 13 59 0 95M 66M sleep 13:16 0.07% oraagent.bin
    10256 oracle 1 59 0 32G 835M sleep 0:00 0.03% oracle
    1227 oracle 15 59 0 78M 56M sleep 4:27 0.02% ocssd.bin
    9524 vector1 112 59 0 1704M 776M sleep 45:04 0.02% java
    988 oracle 38 59 0 119M 92M sleep 3:00 0.02% ohasd.bin
    1297 oracle 1 101 -20 453M 390M sleep 2:47 0.02% oracle
    1765 oracle 1 101 -20 32G 329M sleep 2:45 0.02% oracle
    10258 oracle 1 59 0 32G 345M sleep 0:00 0.02% oracle
    10259 oracle 1 59 0 3400K 2024K cpu/20 0:00 0.01% top
    1777 oracle 1 59 0 32G 342M sleep 1:14 0.01% oracle
    1246 oracle 6 59 0 56M 44M sleep 1:22 0.01% diskmon.bin
    1803 oracle 1 59 0 32G 514M sleep 0:30 0.01% oracle
    1215 oracle 15 59 0 71M 46M sleep 1:12 0.00% cssdagent
    1307 oracle 1 59 0 453M 390M sleep 0:45 0.00% oracle
    1217 oracle 11 59 0 81M 49M sleep 0:35 0.00% orarootagent.bi
    Vmstat output:
    $vmstat 5 5
    kthr memory page disk faults cpu
    r b w swap free re mf pi po fr de sr s3 s3 s3 s3 in sy cs us sy id
    0 0 0 53698448 73900568 20 81 32 6 5 0 1 -0 0 1 -0 2235 1447 1984 1 0 99
    0 0 0 51196160 72037552 1 13 0 0 0 0 0 0 0 0 0 2505 1403 2204 0 0 100
    0 0 0 51193488 72035864 55 380 0 0 0 0 0 0 0 0 0 2487 2143 2203 0 1 99
    0 0 0 51183856 72030176 0 0 0 3 3 0 0 0 0 0 0 2496 1370 2182 0 0 99
    0 0 0 51182648 72029112 22 117 0 0 0 0 0 0 0 0 0 2503 1408 2193 1 0 99
    $cat /etc/release
    Solaris 10 10/09 s10s_u8wos_08a SPARC
    Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 16 September 2009
    I refered the metalink document id: [ID 761960.1]
    Database Instance Using Swap Space When There is Plenty of Free RAM metalink note [ID 761960.1]
    and tried the disabling the sga_max_size and memory_max_target and memory target with all different combination but no use.
    We have one more box where same setup was configured in solaris platform but there the above memory parameters are not disabled but it is not using swap space it takes memry only from physical RAM
    Can any one throw some lights on this issue. It wopuld be great if I come to know where the exact problem
    Thanks in advance
    With Regards,
    Boobathi P

    Hi,
    I didn't say I am not using 11gr2 memory parameters I am using all the automatic memory parameters but the thinks is as per the metalink note I tried by disabling the automatic memory parameters. but that didn't help me in preventing unnecessary swap usage. So I reverted. now it is using automatic memory parameters.
    so What is the solution for this?
    With Regards,
    Boo

  • Out of swap space

    Hello everybody ,
    I encountered an issue in regard to allocation of heap memory for the JVM. I have an t argets for starting and stopping mysql data base and tomcat 5.5 server. I am using java 1.5.09.
    The tomcat start and stop targets are
    <target name="start_tomcat_server" >
    <exec dir="${local.dir}/Tomcat/bin/"     executable="startup.bat" resolveexecutable="true" >     
    </exec>
    </target>
         <target name="stop_tomcat_server" >
              <exec dir="${local.dir}/Tomcat/bin/"     executable="shutdown.bat" resolveexecutable="true">     
              </exec>
         </target>
    This is the issue .
    I start the data base and the mysql server from ant targets. When I try to stop the tomcat server from another ant target , I get the following two kinds of expections at different times.
    1) [exec] Using CATALINA_BASE: C:\applications\local_repository\Tomcat
    [exec] Using CATALINA_HOME: C:\applications\local_repository\Tomcat
    [exec] Using CATALINA_TMPDIR: C:\applications\local_repository\Tomcat\temp
    [exec] Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_09
    [exec] Exception java.lang.OutOfMemoryError: requested 65536 bytes for u_char in C:\BUILD_AREA/jdk1.5.0_09/hotspot\src\share\vm\c\c1_Runtime1.cpp. Out of swap space?
    [exec] Result: 1
    BUILD SUCCESSFUL
    2)[exec] Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_09
    [exec] Error occurred during initialization of VM
    [exec] Could not reserve enough space for object heap
    [exec] Result: 1
    I see the second exception more often.
    I have the setenv.bat file for the tomcat 5.5.20 server as
    set JAVA_OPTS= -Xms256m -Xmx1250m
    I tried setting the environment variable for the ant build file , in the eclipse environment as
    ANT_OPTS = -Xms256m -Xmx1250m
    but it did not help.
    Also I have tried chaning the VMargs for eclipse in eclipse.ini file , this did not work as well.
    When I manually shutdown tomcat using shutdown.bat , it works fine.
    I looked into a similar article on swap space. I was not able to find the solution.
    Please help me out.
    thanks,
    Suchitha

    Do you think you are starting up another VM when you use the "ant target"
    to shut down the tomcat server? The message in your example 2) occurs
    when the VM is first starting up.

  • SWAP space usage??

    When I am monitoring my system using TOP, all of my java process is running well over 350M. The Size field is showing 470M and the RES field is showing 350M. But my Xms and Xmx is set to 256M. Is this mean the applications are using SWAP space?

    Not necessarily. The total memory used by the JVM process will always be more than the Java heap size, specified by ms and mx. Memory used by the JVM for internal management, memory allocated in native code and memory allocated for the permanent space are all allocated outside of the Java heap space.
    You could be using swap space if the total memory reserved by all applications and the OS in the system exceeds the physical RAM installed.
    Arunabh

  • Swap space

    Hi
    I intend to install oracle 10 R2 on redhat linux 5 , my system have 64 gb ram
    how much swap space i need to setup for this size of ram
    i check some installation docoment it mention
    if the memory is 1 to 8 gig then it should be double
    if it is more than 8 gig then it should be 0.75 of mrmory size
    if this is the method then for my ram size i need to set 48 Gb
    is this is right size , i am wondering this size seems like very huge size
    pls advise what is the right size for 64 gb RAM
    RDS

    The documentation states:
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15667/pre_install.htm#i1011296The system must meet the following minimum hardware requirements:
    swap space ... More than 8192 MB -> 0.75 times the size of RAM>
    So, probably it will work with less memory but if you want a supported configuration, then assign the required space, hard disks are so cheap.
    Enrique

  • Swap Space Query for Oracle 11.1.0.6 installation - why so much?

    In process of installing 11.1.0.6 DB on RHE Ver 4 with 8GB of RAM. The installation notes state that for platforms of between 2-8GB of RAM - the swap file should be set to the same as the RAM. Is it not the case that the more RAM you have, the less swap space that should be needed since Oracle has more memory to work with. With the 11.1.0.6 installation for platforms of between 2 and 8GB, it appears that the bigger the RAM there is available the more swap space is required - Why is this the case?
    What are the implications of using say a 2GB swap file with the 8GB or RAM I have available?
    Thanks

    I was confident that the docs were correct - I guess I was looking to understand why the more RAM you had available up to 8GB, the more swap space that was required - basically to understand the underlying logic of this setup?

  • What is normal swap space utilization on Solaris 10

    Hi all,
    I'm running Oracle 11.2 on Solaris 10 on a couple of HP Proliant DL 360 servers.
    Both servers have 72G of physical RAM with swap space set to 16G on both of them.
    Server A has only one database and total memory free = 30G.
    Server A
    top:  Memory: 72G phys mem, 30G free mem, 16G total swap, 16G free swap
    swap -s:   total: 27249744k bytes allocated + 13873764k reserved = 41123508k used, 1000552k available
    prstat: 
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU
       257 oracle     39G   38G    53% 222:11:52 5.6%
        31 root       57M   59M   0.1% 414:47:23 0.1%
         1 smmsp    1776K 7736K   0.0%   0:00:34 0.0%
         6 zabbix   4752K 4092K   0.0%   0:58:31 0.0%
         4 daemon   3864K 6456K   0.0%   0:00:35 0.0%Server B has two databases and total memory free = 9G.
    Server B
    top:  Memory: 72G phys mem, 9890M free mem, 16G total swap, 16G free swap
    swap -s:  total: 29223360k bytes allocated + 627312k reserved = 29850672k used, 16926320k available
    prstat:
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU
       157 oracle     28G   28G    39%  15:38:41 0.4%
        34 root       58M   65M   0.1%   2:56:57 0.0%
         6 zabbix   5580K 4816K   0.0%   0:00:31 0.0%
         1 smmsp    1776K 5724K   0.0%   0:00:00 0.0%
         5 hpsmh      17M   13M   0.0%   0:00:00 0.0%
         4 daemon   3204K 5912K   0.0%   0:00:00 0.0%We are using zfs file system on both servers (which is pretty much the standard these days on Solaris).
    Recently I got an OEM alert that my swap space on server A had crossed the 95% threshhold on one of the servers.
    But when I checked the server, I found that the average swap space utilization was 97.45.
    In fact, what actually happened was my swap utilization momentarily dropped below 95% and then returned back to its normal range above 95% which caused the alert to be triggered.
    So this made me wonder why my swap space utilization was so high on server A, or is this just normal for Solaris (v.10).
    Checking with server B, I see that my swap utilization is only at 63.6% (even though server B has much more physical memory in use by the two databases than server A).
    Main question is why is swap utilization so high on server A, which is configured the same as server B and with less physical memory actually in use.
    Next question is should I be concerned.
    When I check vmstat, I do not see any paging in or out or blocked processes.
    See below for server A
    Server A
    $ vmstat -S 5 5
    kthr      memory            page            disk          faults      cpu
    r b w   swap  free  si  so pi po fr de sr s0 s1 s2 s5   in   sy   cs us sy id
    0 0 0 1059868 30507176 0 0  0  0  0  0  2  7 -0 123 30 13742 25008 7264 5 2 93
    0 0 0 1024076 30982140 0 0  0  0  0  0  0 23  0  0 122 4433 14793 6854 6 2 92
    0 0 0 1030292 30987500 0 0  0  0  0  0  0  0  0  0 102 4055 15049 7014 8 1 91
    0 0 0 1044484 30999572 0 0  0  0  0  0  0  0  0  0 129 5905 19196 8127 6 1 93
    0 0 0 1028584 30987636 0 0  0  0  0  0  0  0  0  0 114 10611 19925 7259 6 3 90

    974632 wrote:
    Looks like we don't have 'free' on these Solaris boxes (only the man pages).
    I'm guessing that free is for linux (since it works fine on my linux boxes).
    $ whereis free
    free: /usr/man/man3c/free.3cdarn!
    Realize that SWAP is purely an OS facility; which is 100% external to Oracle.
    The OS send little used or idle processes into SWAP when RAM is scarce resource.
    The fact that SWAP is being used is not a Bad Thing, in and of itself.
    as long as vmstat shows that BI+BO > SI+SO I would ignore the Chicken Little warnings.

Maybe you are looking for