[Solved] Swap Question

I'm not really a n00bie, but no expert, either, and these are probably 'n00bie' Q's.
Hardware: Asus A8V-MX mobo, Athlon64 XP 3500+, .5GB DDR 333, 250 GB WD Cavier (IDE), homebuilt.
I realise I really need  1GB (at least) of real memory for the environment I run, but money is tight, and my mobo only has 2 DDR slots, so I'd have to buy a full 1 (or 2) GB and put my current memory in the closet.
Arch (Don't Panic) is fully current (x86_64).
I have 2 (relevant) partitions: /boot (40MB), and LVM  (16GB). both at the front of the drive.
LVM: / (3.5GB, 78% in use); /home (.75GB; 36%), and swap.
This build is about 2 months old. I boot to run level 3, and manually initiate X/KDE as needed, but I'm normally on the net; typically I'll have Thunderbird, a console session, and Firefox running most of the time. I'm bad about having a dozen (or more) Firefox tabs open (10 at the moment).
I frequent DailyKos.com. DKos runs AJAX-enhanced Scoop, which either trashes Konqueror, or Konqueror trashes it - it doesn't crash, but rendering in that environment simply does not work - open a page at that site with 200+ comments attached. If Konqueror rendered large DKos pages properly, I'd be using it.
DKos tends to have LARGE pages. I also have a large Yahoo 'home page' with 54 categories; I try not to leave Yahoo windows open, although the home page itself is almost always open. The nature of DailyKos is such that a lot of consecutive pages will be open, and left open, often for hours, constantly being updated by AJAX.
I initially allocated .5GB to swap. System ran OK, but bogged down especially bad when I opened a lot of browser tabs. In that environment (according to free, watching the 'buffers/cache used' item, and the 'swap used' item), both real memory and swap would 'typically' be roughly 50% in use,
I decided a few days ago to increase swap by 50% (to .75GB) to see the results. The system is running considerably smoother; it still gets bogged sometimes, but I realise with the hardware I'm running I can't expect miracles. Even with 3 or 4 DKos windows open, it's still quite quick.
Increasing swap had what hit me as an odd effect. Again, I have 10 windows open (no DKos ATM, but the effect is normally the same with them, also). free shows about 60% of real memory in use, but only 5MB of swap is in use. Given equivalent environments, I would have expected swap usage to go UP if there was more available. It appears that real memory has gone up, slightly (~50% to ~60%), while swap usage has gone WAY done (~50% to < 5%; < 1% this moment).
I'm an OLD ex-COBOL    programmer; I've done a few moderate-size (but not commercial, production-scale) projects in VB (pre-Linux) and understand the basics of OOPS, but I'm not a C/C++ programmer at all, and reading the source isn't terribly helpful. Why did swap usage decline so drastically? I'm certainly not complaining      - I'm simply confused,
Does the kernel decide on a memory management scheme at boot, based on available real memory and swapspace? Why did increasing swap DECREASE swap usage, INCREASE (more subtly) real memory usage, resulting in better performance? Given the environment I'm running, is .75GB a rational/adequate swapspace size? Any suggestions on an optimal swap size? I realise I can experiment myself; I already have a bit, obviously, and and willing to do more experimenting (and will), but some direction as to what's happening behind the scenes would be helpful.
Lastly, is 'free' (properly read) the most appropriate tool for monitoring this, or should I be looking at iostat, vmstat, something in /proc?
TIA!
Keith
Last edited by grndrush (2008-02-22 19:07:38)

I don't know the answer to all of your questions but I beleive this is how swap works, In order for the kernel to free up space on your Memory(ram), the kernel transfers data that is not currently being used to the Swap partition and when the data is needed again the kernel copies it back to your actual Memory. So Swap is only used when an application is in idle and no longer needs it's data to be directly in memory, then when that application is in use again the data is copied back to the Memory. The reason I beleive your swap usage is going down is because you're increasing the size, therefor the ratio's are not what they once were, you're still probably using the same amount of swap but since the size of the swap has been increased it doesn't seem like it. In a general rule a swap partition or swap file should be twice the size of the amount of actual memory you have, increasing your swap more than that really isn't going to make a change to how fast your system is since swap is only used when an application no longer needs it's data to be in ram because it's idle, so it's copied to swap until it's needed again. Hopefully this answers some of your questions, and for your last question I beleive it's a matter of opinion, each of those tools work equally well, I use 'top' myself.
Last edited by twiistedkaos (2008-02-12 19:49:36)

Similar Messages

  • How to undo "This solved my question" on this Using iPhone forum?

    How to undo "This solved my question" on this "Using iPhone" forum?
    new to this forum... how do you undo this?

    **** lol, In that case they should give a warning or some type of "You sure?" yes/no. I clicked completely by mistake. anyways...

  • Can't mark reply "This solved my question"

    In the email I received that notified me of a reply to my question, when I click on the link for either "This solved my question" or "This helped me", it takes me to Safari, but gives me the following:
    Apple Support Communities
    Unauthorized
    It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake.
    If I sign in to the Discussions, and go to Your Stuff and choose the question, I see the Legend, but there are no buttons for me to mark a reply as "This solved my question" or "This helped me". 
    Any idea why I can't do this?  I'm running Mac OS 10.8.5, and Safari 6.0.5.  Could there be something in my Safari settings that is blocking this?
    Thanks,
    Marcia Bolsinga

    There have also been intermittent problems with the forum software lately and this might be causing this problem.
    Try going to your thread again and see if the symptoms change any,

  • Help me for solve this Question this is my problem

    help me for solve this Question this is my problem
    i installed EBS 11i fresh not vision
    i did cart of account and did set of book
    then assigned it with profile option gl set of books name
    and when enter to make ajournal appeare this messege
    [http://www9.0zz0.com/2009/10/06/03/232202588.jpg]
    [http://www9.0zz0.com/2009/10/06/03/634050066.jpg]

    Hi,
    Not sure why are you getting this kind of error (which is pointing to a URL with Jpg file) while creating a journal.
    Could you please bounce your server once and try..
    Please let us know if the error/warning stopping you to enter a journal in GL??
    We don't think profile option is a show stopper here.... We assume that you have assigned Sets of Books, MO: Operating unit & HR USer Profile option at Responsibility level correctly....
    Regards,
    S.P DASH

  • I am trying to use the "This solved my question - 10 points" and the "This helped me - 5 points" but they are NOT doing anything. How do I award the points ?

    I am trying to use the "This solved my question - 10 points" an the "This helped me - 5 points" but they are NOT doing anything. How do I award the points ?

    Are you talking about the "Legend" panel at the right of the window?
    Those text are just help texts explaining the reputation points. You can only award points, if you are the original poster of a question. Then you will see active buttons to award points below the answers you receive. See here for more information: https://discussions.apple.com/static/apple/tutorial/reputation.html
    Regards
    Léonie

  • How do I uncheck "This solved my question" on the Apple Support Communities forum?

    I checked an answer as "this solved my problem" when it actually did not, and I don't want anyone to be mislead.
    How do I uncheck "This solved my question" on the Apple Support Communities forum?

    You can't uncheck it. You'll need to post the question again.
    You could also just add the comment that it was not actually answered.

  • Another hard drive swap question - re: 8GB partition for OSX in iMac 266

    I have a Tangerine iMac 266 that I am setting up for a neighbor's son. The original 6GB hard drive was toast, so I swapped in an old 10GB drive that had previously been removed from an iMacDV 400. The 10GB "new" drive had OSX 10.3.1 and OS 9.1 on a single partition. I am aware that these early iMacs need OSX in a first partition of less than 8GB, so I expected that I would need to partition the "new" drive. However, while I was loading an install CD after powering up, the iMac booted fine into OSX, despite it NOT being located in a first partition of less than 8GB (and has continued operating well - booting multiple times in OS X and 9, surfing the net, etc...the only weirdness is a refusal of Word X to run).
    I thought this was impossible, and in researching this I found that the Apple support site says that, for this computer, "Mac OS X must be installed on a volume that is contained entirely within the first 8 GB of its ATA hard disk." see http://docs.info.apple.com/article.html?artnum=106235
    My Questions:
    Is the 8GB limit only related to iINSTALLING OSX on these machines (and not RUNNING OSX)?
    Will the machine run into problems later if a portion of the OS (i.e., during an update) gets installed outside of the first 8GB of the disk?
    One of the log files says that the driver is out of date for the RageproC, and Classic applications that require more than 4MB of VRAM say that I don't have enough VRAM to run, yet the iMac has 6MB of VRAM (2 on MB and 4 in slot as listing by the system profiler) - do I need to (or should I) reinstall the system software (I already tried loading the latest ATI drivers, but it did't help)?
    P.S. - to add more data points on the subject of RAM upgrades in these iMacs, my iMac 266 would not accept a 256MB PC-100 SO-DIMM that worked fine in an iBook and in the upper slot of a Rev. A iMac 233. Well, it accepted it, but only recognized the first 128MB.

    I believe Duane is correct. Even with Mac OS 9, you can run fine as long as all OS components used during startup are within the first 8GB of space. However, (even with Mac OS 9) as soon as something used during startup ends up beyond that limit, you will get open firmware or a gray screen at startup. The Mac OS X does not allow the installation target to exceed the limit as a preventative measure, not because it won't work at all.
    The best "non-technical" explanation I have heard as to why, is this... The IDE hardware (and its driver) can only "see" the first 8GB of space during the initial start up process before the OS is loaded. Once start up completes, control is handed to the OS, which can see the entire drive. Therefore, apps have no problem running from beyond the limit. Only components needed before the hand-off is constrained to the 8GB limit.
    FYI - On my iMac and 120GB drive, 7.78 GB (as shown in a Finder window) is the precise point where the Mac OS X Installer allows the volume to be the install target. "Precise" to with a few hundred MB's.

  • [SOLVED Noob question about web server permissions

    Hi I have setup up succesfully my web server. Now I am having some permission's questions/problems.
    First of all, I want the /home/httpd/home folder not to be show to the other machine users and only to root.
    I have created a user www-data and I have conf the apache file.
    This is my settings:
    My server directory is: /home/httpd and the permissions I have set:
    home dir:
    ~edited because solved~
    I have set .htaccess to some folders. I don't know If the permissions are safe or not. Can you help me?
    I think that I have different permissions to files and different to the folders...
    Thank you!
    Edited:
    And an example of my permission (phpMyAdmin):
    ~edited because solved~
    Last edited by k3rn31 (2008-02-28 22:26:09)

    This is more of a chat item for me, if you feel like it you can find me most of the time here at http://zaxter.org/xmpp.html if you have flash you can join via a simple click on connect.
    Sorry I've not been of much help to you.

  • [SOLVED] swap usage when there is plenty of ram availibale

    Hi guys, I'm not sure if this is correct subforum, but here is the question
    By default linux kernel uses swap partition even if there is lots of ram availiable. What's the purpose of this? And is there a way to turn this off in Arch.
    Last edited by ogronom (2008-11-03 18:59:10)

    found 2 articles (pretty old) about this issue
    http://www.beranger.org/index.php?article=1547&page=3k
    http://lwn.net/Articles/83588/

  • [SOLVED] Weird question: pacman -Syu nothing to do for quite a while

    Hi,
    Perhaps this an odd question but I feel like for the past 2-3 weeks on two different computers "pacman -Syu" returns "x up to date" for all repos and "nothing to do" as the result. Could nothing really be upgradeable for this long? Can anyone else confirm this or has something gotten goofed? Is there a way to check actual versions with what I have to make sure things really are working properly? Even if nothing was upgradeable I can't remember the last time I saw core, extra, or community actually download without doing "pacman -Syyu". They alway say up to date and I'm thinking this just can't be correct...
    What might help for me to post? I haven't changed anything in pacman.conf or pacman.d/mirrorlist...
    Thanks,
    John
    Last edited by jwhendy (2010-09-02 14:20:53)

    x33a wrote:
    In the future, take a look here:
    https://www.archlinux.de/?page=MirrorStatus
    That's the link I keep losing. Bookmarking now...
    @jwhendy can you change the subject to include the word [SOLVED], please?

  • MultiThreaded compare and swap question.

    I'v got this assignment and I'm not sure which approach to take. I think I've got it right with my second try, but I was wondering if I could get some sort of verification or something.
    "Use Java monitors to implement the atomic Compare-And-Swap instruction, which has the following effect: CSW(a,b,c): < if (a==c) { c = b; return(0);} else {a = c; return 1;} > (In most concurrency books and papers instructions within angle brackets < > means that everything within the brackets is done in one uninterruptible, atomic action.) "
    Is this right?
    public synchronized int compareAndSwap(Object a, Object b, Object c)
            if ( a.equals( c ) )
                c = b;
                return 0;
            a = c;
            return 1;
        }Or is this?
    public int compareAndSwap(Object a, Object b, Object c)
            synchronized ( a )
                synchronized ( b )
                    synchronized ( c )
                        if ( a.equals( c ) )
                            c = b;
                            return 0;
                        a = c;
                        return 1;
        }Or am I totally off base? I think the latter is right as it prevents the objects themselves from being messed with.

    As far as making it an atomic action, you do that
    with synchronized, BUT more detail might be needed
    about the context in which it's supposed to be atomic
    to know what to sync on.OK, thanks. I was thinking I was crazy or something, but his question is just unclear. I have no idea what he wants and I'm not sure he does either.
    Thanks.

  • I have solved some questions, please check if my answers are correct

    Hi every Java aces,
    I have solved some programming questions, please check if my answers are correct. Thanks
    Here are the questions and the answers to each question
    (a) Write a method called add that takes three integers as parameters and returns an
    integer that is the sum of the three parameters.
    (b) Write a method called max that takes three integers as parameters and returns the
    largest of the three integers.
    (c) Write a method called printMax that takes three integers as parameters and prints
    the maximum value to the screen. The method should return nothing. The method
    should print the words \The maximum value is " followed by the maximum value,
    followed by a new-line character. You should try to use the max method that you
    wrote earlier.
    (d) Write a method called min that takes three integers as parameters and returns the
    smallest of the three integers.
    (f) Write a method called ticketPrice that takes one integer parameter representing
    the age of a person, and returns the price of a movie ticket in dollars (as a
    oating
    point value). Children under 6 get in for free (0.00), people that are 18 or under
    pay 8.50, senior citizens (65 or older) pay 6.50, and all other people pay 10.00.
    (g) Write a method called isDivisor that takes two integers as parameters and returns
    true if the rst parameter is a divisor of the second parameter or false otherwise.
    We say that m is a divisor of n, or that m divides n, if there is an integer k such
    that n = k m. Note that 1 divides every integer, and every integer divides i
    itself .
    here are my codes
    public class Methods
    // This is method (a)
    public static int add (int a, int b, int c)
    int sum = a + b + c;
    return sum;
    // This is method (b)
    public static int max (int a, int b, int c)
    int largest;
    if (a > b)
    if (a > c)
    { largest = a; }
    else
    { largest = c;}
    else
    if (b < c)
    { largest = c; }
    else
    { largest = b;}
    return largest;
    // This is method (c)
    public static void printMax (int d, int e, int f)
    int maxValue;
    maxValue = max (d, e, f);
    System.out.println ("The maximum value is " + maxValue);
    // This is method (d)
    public static int min (int a, int b, int c)
    int smallest;
    if ( a < b )
    if ( a < c )
    { smallest = a; }
    else
    { smallest = c; }
    else
    if ( b > c )
    { smallest = c; }
    else
    { smallest = b; }
    return smallest;
    // This is method (f)
    public static double ticketPrice (int age)
    double price;
    if ( age < 6 )
    { price = 0.00; }
    else
    if ( age <= 18 )
    { price = 8.50; }
    else
    if ( age < 65 )
    { price = 10.00; }
    else
    { price = 6.50; }
    return price;
    // This is method (g)
    public static boolean isDivisor ( int m, int n )
    boolean result;
    int check1;
    double check2;
    check1 = n / m;
    check2 = (double)n / m;
    if ( check2 == check1 )
    { result = true; }
    else
    { result = false; }
    return result;
    }

    Here are my codes
    // This is method (a)
      public static int add (int a, int b, int c)
        int sum = a + b + c;
        return sum;
      // This is method (b)
      public static int max (int a, int b, int c)
        int largest;
        if (a > b)
          if (a > c)
          { largest = a; }
          else
          { largest = c;}
        else
          if (b < c)
          { largest = c; }
          else
          { largest = b;}
        return largest;   
      // This is method (c) ?
      public static void printMax (int d, int e, int f)
        int maxValue;
        maxValue = max (d, e, f);
        System.out.println ("The maximum value is " + maxValue);
      // This is method (d)
      public static int min (int a, int b, int c)
        int smallest;
        if ( a < b )
           if ( a < c )
           { smallest = a; }
           else
           { smallest = c; }
        else
          if ( b > c )
          { smallest = c; }
          else
          { smallest = b; }
        return smallest;
    // This is method (f)
      public static double ticketPrice (int age)
        double price;
        if ( age < 6 )
        { price = 0.00; }
        else
          if ( age <= 18 )
          { price = 8.50; }
          else
            if ( age < 65 )
            { price = 10.00; }
            else
            { price = 6.50; }
        return price;
      // This is method (g)
      public static boolean isDivisor ( int m, int n )
        boolean result;
        int check1;
        double check2;
        check1 = n / m;
        check2 = (double)n / m;
        if ( check2 == check1 )
        { result = true; }
        else
        { result = false; }
        return result;
       // This is method (h)
      public static boolean isProduct ( double a, double b, double c )
        boolean result;
        if ( a == b*c )
        { result = true;}
        else
        { result = false;}
        return result;
         

  • [Solved] swap in RAM

    Long time ago I saw an advertisement of a window$ program which was allowing to use a part of RAM something like a SWAP partition. I've been thinking about moving to a 32bit OS, as I've heard that everything uses less RAM than on a 64bit one. Is there any linux equivalent to that program?
    Last edited by isitsaturday (2013-06-25 20:38:44)

    ANOKNUSA wrote:
    No offense intended,  but thinking doesn't get anymore backward than this.  Everything may use up to 20% less RAM system-wide, but you'll only be able to efficiently utilize 1Gb of that RAM anyway.  With RAM modules for brand new machines being dirt-cheap (I spent $20 USD on a 4Gb stick after my last laptop purchase), and RAM being far more abundant than any current operating system could possibly need or even use under typical conditions, you're attempting to solve a non-existent problem.
    Anyhoo, this thread is marked as "solved" despite no solution being posted; what's with that?
    I wanted to move to 32-bit because it uses less RAM. I've seen a windows program advertisement, didn't even see the program itself. The ad was saying it lets >4GB RAM be used as swap on 32-bit systems. I marked the thread as [Solved] 'cause zramswap does what I've wanted to achieve (using less RAM without having less RAM available) and as Arch is going to drop 32-bit support, I'm not going to move to 32-bit anymore.

  • Device Swap Question

    Semi-newb with super basic question just don't want to purchase wrong device...
    TL;DR Is there any real limitation to using the LG Revolution over the S3 for someone who just wants to surf, share pics, eBay, etc.?
    Hi, want to bring my dad into the current decade and upgrade his phone for him to a smartphone (not eligible for upgrade, just want to buy one and device swap). Android only.
    Anyway, the mandatory things are 4G capable, and a way to have text reflow when browsing the web as he can't read small font (for android you can get text reflow with Opera browser).
    Please suggest a phone! I have the S3, but it's still expensive ($180+ used). What about the LG Revolution VS910 ? It's like $50.
    The main question I have is- does it make a difference that the Revolution runs an old Android OS version (2.2 I think)? As I understand it, it takes a lot of effort (and $) to update devices to run the current version of Android, and that's why not all phones run the current version. So would there be any real limitations for him running an older version of the OS?
    What would he be missing having the Revolution instead of the S3? He wants to be able to surf the web, take and share pics, eBay and whatnot. If they are both essentially the same for him, then might as well save a few$.. Any other phones you could think of?

    I just bought my elderly parents smart phones and taught them how to use them.  My 71 year old dad got the HTC ONE and he loves it. I got my 70 year old mom a Droid Ultra. And When I say they love their phones I mean love them. My mom puts all her dr appts on her calendar,  she uses Color Notes and keeps track of her grocery lists and all her medications.  And she uses Alarm + to remind her when to take her medicine.  She loves the assistant app Robin and it's hysterical to watch them fight.  She was losing her sight so the Droid had so many great features so loves that helps her.
    I guess what I'm trying to say is its very important to match up people with the right smart phone or it can be very frustrating or it can help them a great deal.  It will take alot of patience to teach a new smart phone  user.
    If I had to make a recommendation for  a affordable used phone I would say try the Droid Bionic on eBay. Another good tough phone is the HTC Rezound.  Both are tough, not too old and fairly easy to use.  You probably can find in excellent condition for about  $60. 4G wi-fi, Jellybean. Good luck.

  • [SOLVED] Some questions about a recently submited package (cgames)

    Hi there, when searching for ncurses sokoban-like games I ended up finding a great one that wasn't at the AUR yet. I submitted it (the package is named cgames) but I have some questions.
    1- The source code provided by the developer has 3 games. Should I have packaged each one individually? I decided this way because they are so small that I figure nobody would have a problem in having them all even when just wanting to play one of them (you can always change the make command in the PKGBUILD if you want a single game).
    2 - The original package had some compiling problems due to a function called getline (already existing in stdio.h) and I solved this problem with a sed command. Is this the proper way to do it? Should I have created some patch file or something?
    3- I'm 99% sure the game works in 64bit archs, but 99 isn't 100. Can anyone try it out for me, so that I change the PKGBUILD? I know I should have tested it but I don't have the time to install a 64b arch in the next few days.
    Thank you in advance
    Last edited by jlcordeiro (2010-03-29 15:33:58)

    Yeap, a bit
    Anyway, all done (i think)
    Second release:
    - Replaced sed command with a patch
    - Added x64 arch
    - Fixed a little bug with the configure command
    Last edited by jlcordeiro (2010-03-29 15:32:42)

Maybe you are looking for

  • How to show the content of a table (long text) in a scrollable textbox?

    Hi, I have to say first, many thanks to the ones who answers to threads in this forum, it's very helpfull when we're learning web dynpro! I have a RFC function that return a table containing a long text (node "it_text", with elements "Tdformat" and "

  • .Mac syncing not working very well

    It worked for mail, but safari no luck what so ever no keychain access or bookmarks will copy over. I have deleted my mac then re-instated it with no luck. Am I alone?

  • SL and iTunes broken iPhone sync

    I get this message when I plug my iPhone into the cradle: "The Phone [my phone's name] cannot be synced. You do not have enough access privileges for this operation." It still manages to sync most of the info, including podcasts and music. I cannot t

  • DNS querier

    please help me in creating a DNS query program to display the resource records it returns

  • Invalid Number When Submitting XML Publisher Request Sets

    Hi All, I face this problem when I click on option of the second request on request set. I found this is a oracle bug on metalink. I post this question because I wanted to know if there are any workaround to solve this issue without applying the patc