home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 32 Periodic / 32-Periodic.zip / JMOS2-01.ZIP / JOESOS2.TIP
Text File  |  1992-07-24  |  11KB  |  214 lines

  1.                      Joe's OS/2 Tips.
  2.  
  3.         Written by Joseph Mckinnon (61:560/0@Worldnet)
  4.         Voice : (07)800-2225 - Proteus Technology.
  5.  
  6.         Downloaded from Proteus OS/2, Australia's Only SIMPLEX Site.
  7.         
  8.         Phone +61-7-800-3521    
  9.         
  10.         Hours 24 hours a day
  11.         
  12.         Speeds 300-9600, PEP, MNP, V42/Bis
  13.  
  14.  
  15. Few people realise that the default OS/2 setup isn't exactly the best.
  16. The following document was written by myself, after experimenting with
  17. OS/2 version 2.0.
  18.  
  19. Abit of background about myself,
  20.   I'am Joseph Mckinnon, I was introduced to OS/2 by Ernst Winter half
  21.   way through 1991.  This seemed at the time like an ideal operating
  22.   system for my requirements - Multi-tasking, solid and fast (ask my
  23.   closest friends about my like for speed).  I joined the Early
  24.   Experience Program through Adrian Collings (Critial Software Designs).
  25.   From that day on I enjoyed the system and went about making the Beta
  26.   Code run faster than normal, since, as you all know, Beta code is
  27.   always slower than the real thing, due to the amount of extra
  28.   'fail-safe' code built in to trap system errors.
  29.   From this I've developed quite a good grounding in what things you
  30.   should change to get the best.
  31.  
  32. Memory Requirements.
  33.  
  34.   From the starting post, IBM's minimal requirements would make me lose
  35.   my temper at the preformance, since 4 meg is just enough to boot the
  36.   System, let alone run any real applications.  Therefore, if you are
  37.   considering to run OS/2 as the default operating system, I'd recommend
  38.   for you to have at least 8 meg.  This way you can realy use your
  39.   system.  Sure other companys may say that's too much for a normal
  40.   user, I say Bull.  As far as I'am concerned if I like what I use I
  41.   prefer speed than to run with one foot in lead and the other in
  42.   plaster.
  43.   With 8 meg of RAM, you can run multiple applications at a reasonable
  44.   speed, with the defaults.  But, if you have patience (or a very fast
  45.   machine 486-50mhz) you maybe able to live with 4 meg, and put up with
  46.   the delay in loading applications, and noise from your Harddrive being
  47.   constantly accessed (Why's this, read on).  Since OS/2 is an advanced
  48.   operating system it takes advantage of many of the memory techniques
  49.   found on Mini's and Mainframes, one of features of OS/2 is it's virtual
  50.   memory.
  51.  
  52. Virtual Memory.
  53.  
  54.   This whole Idea is basically summed up in saying OS/2 uses the swapper
  55.   file on your Harddrive as RAM to run programs in.  Thus on a 4 meg
  56.   machine, OS/2 is continuly 'thrashing' the harddrive, since there's
  57.   not enough physical RAM to run both your applications and OS/2
  58.   properly. The advantage that OS/2 has over other 16 bit
  59.   shells/operating systems is that OS/2's 32bit programming allows the
  60.   system to work with small blocks of memory (4k) and therefore it's
  61.   much more effective when swapping to the harddrive 16bit have
  62.   to page out 64k chunks at a time, causing undue strain on the system.
  63.   Especially when it it's reloading the same block to run 4k of code out
  64.   of that segment, which of course these 16 bit shells tend to run
  65.   slowly once they reach the end of physical RAM.
  66.  
  67. Physical Memory.
  68.  
  69.   This, of course is the amount of RAM your system contains.  OS/2 will
  70.   use every bit of the RAM it can find, without you having to tell it
  71.   what to use.  This is a BIG step forward over other memory managers,
  72.   where you, the user (and generally inexperienced) has to sit down and
  73.   work out what areas to include and exclude.  With OS/2's 32bit
  74.   environment it's in theory capable of handling a GIG (4,096 Meg) of RAM!
  75.   which of course is very hard to imagine.
  76.  
  77. The CONFIG.SYS file
  78.  
  79.   After installation of your system, OS/2 will install a default, use
  80.   for all systems, CONFIG.SYS file.  At first glance, many new users
  81.   will say 'Hey, I'am not going to even touch it', since it can range
  82.   from about 20 lines to 40, depending on what you installed, etc.
  83.   Inside this 'hideous creation' you'll find many interesting keywords
  84.   for OS/2, EG MAXWAIT, IFS DPATH and many more, all totally alein from
  85.   the DOS-World,  DON'T BE SCARED OFF BY THESE THINGS, it's all in the
  86.   Online Help, take time to read about them, and experiement, otherwise
  87.   you'll never feel confident.
  88.  
  89.   One thing that stands out is this line.
  90.       PRINTMONBUFSIZE=132,132,132
  91.   Which after you've read the online help (go on, that's what it's for),
  92.   is the Printer Buffers, for LPT1,LPT2,LPT3.  So why reserve memory for
  93.   unused printer ports?  Plus, if you don't do much printing, why
  94.   reserve so much, when the system can use the memory for either itself
  95.   or for your apps.  Therefore assign a value which suits your usage,
  96.   mine is
  97.       PRINTMONBUFSIZE=100,0,0
  98.  
  99.       THREADS=256
  100.   Threads is the number of independent actions that OS/2 is expected to
  101.   manage.  Each thread requires a small fraction of Physical RAM, thus
  102.   if your not particularly running massive OS/2 Applications, which have
  103.   many threads, then why reserve so many.  In case you're worried about
  104.   not assigning enough, there is a small utility program called MAP57,
  105.   which I'd recommend obtaining, since this will give you a report on
  106.   the number of threads in use by your system (available from my BBS
  107.   Proteus OS/2 +61-7-800-3521).  With this utility I was able to halve
  108.   my default setting to 128, which is still rather high, but it's better
  109.   to have more than required, otherwise your system's preformance will
  110.   be terrible if you remove to many.
  111.       THREADS=128
  112.  
  113.       IFS=D:\OS2\HPFS.IFS  /CACHE:64 /AUTOCHECK:DE /CRECL:4
  114.   This is the HPFS (High Preformance File System - Requires at least 6
  115.   meg Physical RAM) controlling line.  It's very annoying to see OS/2
  116.   install a 196k Cache on my system, because it's eating to much RAM for
  117.   my setup.  My Hardrive has a 64k Cache built-in, so why tie up more
  118.   physical RAM.  I've had this set to 196, and other values, but after
  119.   much trial and error I found that 64k cache on the HD and the IFS give
  120.   me the same preformance results.  Some people are setting this at
  121.   incrediable settings, eg 1024k, etc which may have been great under DOS,
  122.   but under OS/2 it's useless if you've only got limited memory available.
  123.   I suggest that you play trial & error with this setting because every
  124.   system setup is different, but keep in mind, DON'T GO OVERBOARD,
  125.   swapping memory in and out makes your system slower, no matter how
  126.   fast your harddrive may be.
  127.  
  128.       PATH
  129.   AS in DOS, this command along with the others (DPATH, LIBPATH, HELP)
  130.   define where to look for files to run (or in the other ones, where to
  131.   find specific files eg Help files).  I find that people tend to throw
  132.   all their program paths into these statements, so that they can be in
  133.   any directory and load that file.  That's great, but why setup your
  134.   system like this, since your system searches all these paths until it
  135.   finds the application.  Which, of course, is an un-necessary process.
  136.   You should be making a program icon for that particular app, and
  137.   activiate with the mouse rather than at the command line, quicker and
  138.   much more easier for other users.  Plus that's what GUI's are designed
  139.   for.
  140.  
  141.       AUTOFAIL and PAUSEONERROR
  142.   If you're like me, and hate seeing the Abort, Retry, Ignore responses
  143.   under DOS, you can make OS/2 take the easy way out for you.  How
  144.   often have you got you drives mixed up and told DOS to go to drive B
  145.   instead of A and the drive sits there looking at nothing (that is of
  146.   course if you've got the PROMPT returning current directory details
  147.   for you), OS/2 will not prompt you with Abort, Retry, Ignore if
  148.   Autofail is active, instead it will return saying
  149.       D:\>b:
  150.       SYS0015: The system cannot find the drive specified.
  151.  
  152.       MAXWAIT
  153.   Provides OS/2 the ability to change priority settings of a thread to a
  154.   higher number after it hasn't recieved processor attention after a
  155.   specified period.  This is from the online help.  I've got mine set to
  156.   1 because I run a BBS which I want to preform like a rocket at all
  157.   times.
  158.  
  159. RUNNING DOS/WINDOWS APPS
  160.  
  161.    If you're not planning on running anything else at the same time, 1 dos
  162.    application, the defaults are okay.  If you plan on running an OS/2
  163.    app and dos apps, I'd recommend setting the IDLE_SENSITIVITY to about
  164.    10, then your DOS and OS/2 will work at greatly improved preformance.
  165.    Many apps require fine tuning which I can't cover in this document.
  166.    I prefer to run system native apps - OS/2 applications wherever
  167.    possible.
  168.  
  169. RUNNING OS/2 APPS
  170.  
  171.    Basically ALL OS/2 apps take advantage of the system, and are very
  172.    friendly to the system, in that they will request only what
  173.    processing power they require and in turn 'hand-over' any processing
  174.    power when they aren't working.  This is why you should really be
  175.    converting to OS/2 applications, because they are system aware,
  176.    rather than like DOS/WINDOWS apps which tend to be system resource
  177.    hogs.  One Major feature of OS/2 is the ablility for OS/2 to reload
  178.    after a power failure all the OS/2 apps that were running and usually
  179.    to a point just before the power failure, which is extremely helpful
  180.    feature.
  181.  
  182. THE BAD APP SYNDROME.
  183.  
  184.    Under DOS/WINDOWS/DV there are certian applications which kill the
  185.    entire system, generally known as Bad Apps, or another popular one
  186.    the UAE (unrecoverable appliaction error made famous by windows).
  187.    Under Windows, a UAE (or these days the program has just done this
  188.    please shutdown and reboot) is fatal! Since you usually have to
  189.    reach for the Big Red switch (or the big White one for PS/2s) and
  190.    power OFF to recover.  Not a nice method of system recovery.
  191.  
  192.    Under OS/2, the same types of progams can cause the system to abort.
  193.    But in this case the abort is simply the window in which that
  194.    application was started in, therefore you just double click on the
  195.    mouse button to close that window, and the problem has been removed.
  196.    OS/2 then continues on uncaring about that hiccup and in actual fact
  197.    when this hiccup occured the other apps are still processing, not
  198.    stopped and waiting.  OS/2 can do this becasue it takes advantage of
  199.    advanced programming methods to isolate each application from each
  200.    other and literally providing a whole computer system per-window,
  201.    thus the bad app is simply 'killed-off' and as far as the other apps
  202.    are concerned nothing happened.
  203.  
  204.    Sometimes the Crash does affect OS/2, but never fear Pressing
  205.    CTRL-ESCAPE a few times and waiting about 1 minute will cause the
  206.    main system thread to preform a fail-safe step, where a window will
  207.    pop-up and says Press Return to restart the Shell and all processes
  208.    running will remain running.  There is a small chance of losing data,
  209.    but I havn't yet, nor is this an everyday occurence.  This once
  210.    happened while a user was online downloading a file, and he never knew
  211.    there was anything wrong, this is a true indication of the protection that
  212.    OS/2 gives to it's processes!
  213.  
  214.