home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gimp / 2.0 / help / en / gimp-using-setup-tile-cache.html < prev    next >
Encoding:
Extensible Markup Language  |  2008-05-03  |  11.8 KB  |  254 lines

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.   <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6.     <title>4.¬† How to Set Your Tile Cache</title>
  7.     <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
  8.     <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
  9.     <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" />
  10.     <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" />
  11.     <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
  12.     <link rel="start" href="index.html" title="GNU Image Manipulation Program" />
  13.     <link rel="up" href="gimp-pimping.html" title="Chapter¬†11.¬† Pimp my GIMP" />
  14.     <link rel="prev" href="gimp-using-grid.html" title="3.¬† Rendering a Grid" />
  15.     <link rel="next" href="gimp-concepts-shortcuts.html" title="5.¬† Creating Shortcuts to Menu Functions" />
  16.   </head>
  17.   <body>
  18.     <div class="navheader">
  19.       <table width="100%" summary="Navigation header">
  20.         <tr>
  21.           <th colspan="3" align="center">4.¬†
  22.     <span lang="en" xml:lang="en">How to Set Your Tile Cache</span>
  23.   </th>
  24.         </tr>
  25.         <tr>
  26.           <td width="20%" align="left"><a accesskey="p" href="gimp-using-grid.html"><img src="../images/prev.png" alt="Prev" /></a>¬†</td>
  27.           <th width="60%" align="center">Chapter¬†11.¬†
  28.         <span lang="en" xml:lang="en">Pimp my GIMP</span>
  29.       </th>
  30.           <td width="20%" align="right">¬†<a accesskey="n" href="gimp-concepts-shortcuts.html"><img src="../images/next.png" alt="Next" /></a></td>
  31.         </tr>
  32.       </table>
  33.       <hr />
  34.     </div>
  35.     <div class="sect1" lang="en" xml:lang="en">
  36.       <div class="titlepage">
  37.         <div>
  38.           <div>
  39.             <h2 class="title" style="clear: both"><a id="gimp-using-setup-tile-cache"></a>4.¬†
  40.     <span lang="en" xml:lang="en">How to Set Your Tile Cache</span>
  41.   </h2>
  42.           </div>
  43.         </div>
  44.       </div>
  45.       <a id="id2613498" class="indexterm"></a>
  46.       <p>
  47.     During the data processing and manipulation of pictures, GIMP becomes
  48.     in the need of much main memory. The more is available the better is.
  49.     <acronym class="acronym">GIMP</acronym> uses the operating system memory available
  50.     resources as effectively as possible, striving to maintain the work on
  51.     the pictures fast and comfortable for the user. That Data memory,
  52.     during the treatment, is organized in buffered blocks of graphic data,
  53.     which could exist in two different forms of data memory: in the slow not
  54.     removable disk or in the fast main RAM memory. GIMP uses preferably the
  55.     RAM, and when it runs short of this memory, it uses the hard disk for the
  56.     remaining data. These chunks of graphic data are commonly referred to as
  57.     "tiles" and the entire system is called "tile cache".
  58.   </p>
  59.       <p>
  60.     A low value for tile cache means that GIMP sends data to the disk very
  61.     quickly, not making real use of the available RAM, and making the disks
  62.     work for no real reason. Too high a value for tile cache, and other
  63.     applications start to have less system resources, forcing them to use swap
  64.     space, which also makes the disks work too hard; some of them may even
  65.     terminate or start to malfunction due lack of RAM.
  66.   </p>
  67.       <p>
  68.     How do you choose a number for the Tile Cache size? Here are some tips to
  69.     help you decide what value to use, as well as a few tricks:
  70.   </p>
  71.       <div class="itemizedlist">
  72.         <ul type="disc">
  73.           <li>
  74.             <p>
  75.         The easiest method is to just forget about this and hope the default
  76.         works. This was a usable method when computers had little RAM, and
  77.         most people just tried to make small images with GIMP while running
  78.         one or two other applications at the same time. If you want something
  79.         easy and only use GIMP to make screenshots and logos, this is probably
  80.         the best solution.
  81.       </p>
  82.           </li>
  83.           <li>
  84.             <p>
  85.         If you have a modern computer with plenty of memory‚Äìsay, 512 MB or
  86.         more‚Äìsetting the Tile Cache to half of your RAM will probably give
  87.         good performance for GIMP in most situations without depriving other
  88.         applications. Probably even 3/4 of your RAM would be fine.
  89.       </p>
  90.           </li>
  91.           <li>
  92.             <p>
  93.         Ask someone to do it for you, which in the case of a computer serving
  94.         multiple users at the same time can be a good idea: that way the
  95.         administrator and other users do not get mad at you for abusing the
  96.         machine, nor do you get a badly underperforming GIMP. If it is your
  97.         machine and only serves a single user at a given time, this could mean
  98.         money, or drinks, as price for the service.
  99.       </p>
  100.           </li>
  101.           <li>
  102.             <p>
  103.         Start changing the value a bit each time and check that it goes faster
  104.         and faster with each increase, but the system does not complain about
  105.         lack of memory. Be forewarned that sometimes lack of memory shows up
  106.         suddenly with some applications being killed to make space for the
  107.         others.
  108.       </p>
  109.           </li>
  110.           <li>
  111.             <p>
  112.         Do some simple math and calculate a viable value. Maybe you will have
  113.         to tune it later, but maybe you have to tune it anyway with the other
  114.         previous methods. At least you know what is happening and can get the
  115.         best from your computer.
  116.       </p>
  117.           </li>
  118.         </ul>
  119.       </div>
  120.       <p>
  121.     Let's suppose you prefer the last option, and want to get a good value to
  122.     start with. First, you need to get some data about your computer. This
  123.     data is the amount of RAM installed in your system, the operating system's
  124.     swap space available, and a general idea about the speed of the disks that
  125.     store the operating system's swap and the directory used for GIMP's swap.
  126.     You do not need to do disk tests, nor check the RPM of the disks, the
  127.     thing is to see which one seems clearly faster or slower, or whether all
  128.     are similar. You can change GIMP's swap directory in the Folders page of
  129.     the Preferences dialog.
  130.   </p>
  131.       <p>
  132.     The next thing to do is to see how much resources you require for other
  133.     apps you want to run at the same time than GIMP. So start all your tools
  134.     and do some work with them, except GIMP of course, and check the usage.
  135.     You can use applications like free or top, depending in what OS and what
  136.     environment you use. The numbers you want is the memory left, including
  137.     file cache. Modern Unix keeps a very small area free, in order to be able
  138.     to keep large file and buffer caches. Linux's <span class="emphasis"><em>free</em></span>
  139.     command does the maths for you: check the column that says
  140.     ‚Äú<span class="quote">free</span>‚Äù, and the line ‚Äú<span class="quote">-/+ buffers/cache</span>‚Äù.
  141.     Note down also the free swap.
  142.   </p>
  143.       <p>
  144.     Now time for decisions and a bit of simple math. Basically the concept is
  145.     to decide if you want to base all Tile Cache in RAM, or RAM plus operating
  146.     system swap:
  147.   </p>
  148.       <div class="procedure">
  149.         <ol type="1">
  150.           <li>
  151.             <p>
  152.         Do you change applications a lot? Or keep working in GIMP for a long
  153.         time? If you spend a lot of time in GIMP, you can consider free RAM
  154.         plus free swap as available; if not, you need to go to the following
  155.         steps. (If you're feeling unsure about it, check the following steps.)
  156.         If you are sure you switch apps every few minutes, only count the free
  157.         RAM and just go to the final decision; no more things to check.
  158.       </p>
  159.           </li>
  160.           <li>
  161.             <p>
  162.         Does the operating system swap live in the same physical disk as GIMP
  163.         swap? If so, add RAM and swap. Otherwise go to the next step.
  164.       </p>
  165.           </li>
  166.           <li>
  167.             <p>
  168.         Is the disk that holds the OS swap faster or the same speed as the
  169.         disk that holds the GIMP swap? If slower, take only the free RAM; if
  170.         faster or similar, add free RAM and swap.
  171.       </p>
  172.           </li>
  173.           <li>
  174.             <p>
  175.         You now have a number, be it just the free RAM or the free RAM plus
  176.         the free OS swap. Reduce it a bit, to be on the safe side, and that is
  177.         the Tile Cache you could use as a good start.
  178.       </p>
  179.           </li>
  180.         </ol>
  181.       </div>
  182.       <p>
  183.     As you can see, all is about checking the free resources, and decide if
  184.     the OS swap is worth using or will cause more problems than help.
  185.   </p>
  186.       <p>
  187.     There are some reasons you want to adjust this value, though. The basic
  188.     one is changes in your computer usage pattern, or changing hardware. That
  189.     could mean your assumptions about how you use your computer, or the speed
  190.     of it, are no longer valid. That would require a reevaluation of the
  191.     previous steps, which can drive you to a similar value or a completely
  192.     new value.
  193.   </p>
  194.       <p>
  195.     Another reason to change the value is because it seems that GIMP runs too
  196.     slowly, while changing to other applications is fast: this means that GIMP
  197.     could use more memory without impairing the other applications. On the
  198.     other hand, if you get complaints from other applications about not having
  199.     enough memory, then it may benefit you to not let GIMP hog so much of it.
  200.   </p>
  201.       <p>
  202.     If you decided to use only RAM and GIMP runs slowly, you could try
  203.     increasing the value a bit, but never to use also all the free swap. If
  204.     the case is the contrary, using both RAM and swap, and you have problems
  205.     about lack of resources, then you should decrease the amount of RAM
  206.     available to GIMP.
  207.   </p>
  208.       <p>
  209.     Another trick is to put the Swap Dir on a very fast disk, or on a
  210.     different disk than the one where most of your files
  211.     reside. Spreading the operating
  212.     system swap file over multiple disks is also a good way to speed
  213.     things up, in general. And of course, you might have to buy more RAM
  214.     or stop using lots of programs at the same time: you can not
  215.     expect to edit a poster on a computer with 16MB and be fast.
  216.   </p>
  217.       <p>
  218.     You can also check what memory requirements your images have. The larger
  219.     the images, and the number of undoes, the more resources you need. This
  220.     is another way to choose a number, but it is only good if you always work
  221.     with the same kind of images, and thus the real requirements do not vary.
  222.     It is also helpful to know if you will require more RAM and/or disk space.
  223.   </p>
  224.     </div>
  225.     <div class="navfooter">
  226.       <hr />
  227.       <table width="100%" summary="Navigation footer">
  228.         <tr>
  229.           <td width="40%" align="left"><a accesskey="p" href="gimp-using-grid.html"><img src="../images/prev.png" alt="Prev" /></a>¬†</td>
  230.           <td width="20%" align="center">
  231.             <a accesskey="u" href="gimp-pimping.html">
  232.               <img src="../images/up.png" alt="Up" />
  233.             </a>
  234.           </td>
  235.           <td width="40%" align="right">¬†<a accesskey="n" href="gimp-concepts-shortcuts.html"><img src="../images/next.png" alt="Next" /></a></td>
  236.         </tr>
  237.         <tr>
  238.           <td width="40%" align="left" valign="top"><a accesskey="p" href="gimp-using-grid.html">3.¬†
  239.     <span lang="en" xml:lang="en">Rendering a Grid</span>
  240.   </a>¬†</td>
  241.           <td width="20%" align="center">
  242.             <a accesskey="h" href="index.html">
  243.               <img src="../images/home.png" alt="Home" />
  244.             </a>
  245.           </td>
  246.           <td width="40%" align="right" valign="top">¬†<a accesskey="n" href="gimp-concepts-shortcuts.html">5.¬†
  247.     <span lang="en" xml:lang="en">Creating Shortcuts to Menu Functions</span>
  248.   </a></td>
  249.         </tr>
  250.       </table>
  251.     </div>
  252.   </body>
  253. </html>
  254.