Re: restart desktopu

Autor: Przemysław Pawełczyk (warpman_at_poczta.fm)
Data: Thu 01 Mar 2001 - 12:19:39 MET


On Wed, 28 Feb 2001 23:43:22 +0100 (MET), Lech Wiktor Piotrowski wrote:

=> W sumie masz racje i... nie :) Otoz zapotrzebowanie na pamiec bedzie roslo z czasem,
=> wiec zamiast tylko i wylacznie dokupywac - zachowanie windziane -- lepiej tez
=> poszukac problemu w systemie.

Lechu,

Zacznę od Twojego problemu:

> jakies programy, swap rosnie np. do 61, wylaczam je na noc, to rano
> swap powinien byc 32 MB, a nie np. 49... Ktos zna przyczyne tego?

który tak na dobrą sprawę nie jest problemem, a jedynie psychicznym
cierniem w naszym poszukiwaniu doskonałości. ;-)

A odpowiadając na zawarte pytanie - Warp przewiduje, że niektóre pliki,
które zapisał do SWAPu, możesz niedługo potrzebować, więc z wrodzoną
sobie skromnością część z nich pozostawia nie informując Cię o tym, aby
nie psuć dobrego samopoczucia po cudownie spędzonej randce (na
przykład).

Rozumiem, że sposoby, których opiszę poniżej już znasz, niemniej dla
przypomnienia innym wymienię je raz jeszcze.

1. Program Swap Monitor V 0.35
href="ftp://sunsite.icm.edu.pl/pub/hobbes/os2/util/disk/swpm035.zip
http://space.tin.it/scienza/acantato/

Pomoże określić maksymalną wielkość pamięci SWAP, którą należy wpisać w
CONFIG.SYS. Tak zrobiłem, tylko że mając dużo przestrzeni dyskowej
zadeklarowałem 128 MB i mam spokój, nic nie rośnie, nawet używając
takich pożeraczy jak PM Mail, PM View (!!!), Netscape Communicator (!) i
Ebellish razem wzięte.

2. Theseus 4 + SysInfo
http://www.os2.ru/projects/sysinfo/indexeng.shtml

Szczególnie Theseus, uraczy Cię listą bibliotek. Poznasz więc sprawców
zarazy pączkowania SWAPu.

3. Pliki pomocy i FAQ dotyczące OS/2 np. asst-os.inf

Stare, ale jare. Dziwię się, że taki wyga jak Ty nie (z)gromadził do tej
pory obszernej biblioteki wszelkich plików pomocy, jakie tylko udało się
opublikować i przechwycić. Posiadanie takiej biblioteki na dysku
niesamowicie upraszcza życie. :-)

Np. z pliku asst-os.inf:

(w tekście info o poleceniu PSTAT /L)

  SWAPPER.DAT Questions

  Q. What can I do if my SWAPPER.DAT file can't grow anymore due to lack of disk space?
   
    1. Move the SWAPPER.DAT file to a partition containing more room (just change the
       SWAPPATH=d:\OS2\SYSTEM statement in CONFIG.SYS to point somewhere else where you have more
       room, such as D:\ for example, and reboot--after rebooting you may delete the "old" SWAPPER.DAT file
       from \OS2\SYSTEM, as it is no longer used or locked);
    2. Free up some more space on the existing drive by deleting some files or programs, or moving them to
       another drive; or
    3. Add more RAM, which will reduce the amount of swapping done, and therefore the SWAPPER.DAT file size.
  
  Q. Does the SWAPPER.DAT file ever shrink in OS/2?
  A. Yes. OS/2 is designed to expand and shrink SWAPPER.DAT as needed, in 1MB increments, but because the
  assumption is made that recently used information may be needed again, SWAPPER.DAT doesn't shrink as rapidly
  as it grows. (The technical term is hysteresis.) In fact, there can be quite a long delay sometimes.

  Q. SWAPPER.DAT doesn't shrink on my 2.0 system, even after I close everything but the Desktop.
  A. There is a temporary fix for this problem on 2.0/2.00.1 systems available for download from the IBM PC
  Company BBS. The file is called OS2KRNL.ZIP. It is also available (under a different name) on CompuServe.
  The final fix is contained in the 2.0 ServicePaks (which are no longer available) and in OS/2 2.1 or later.

  Q. How much does a large SWAPPER.DAT file affect performance?
  A. Ideally, the smaller the file the better, but as a general rule of thumb, in OS/2 2.x once SWAPPER.DAT's size
  exceeds the amount of installed RAM, performance will suffer noticeably. This means that a user with 8MB of
  RAM can probably swap as much as 8MB of data (16MB running at once), and a 16MB user as much as 16MB
  (32MB running concurrently), before noticing a significant performance "hit." The exact point where swapping
  becomes a hindrance will depend very much on how fast the processor and hard disk drive are. (This rule of
  thumb does not apply to OS/2 Warp, as the swapping algorithm is much more efficient, allowing SWAPPER.DAT
  to grow much larger than previously before a significant performance impact is felt. But swapping activity is
  still much higher with 4-8MB of RAM than with 16MB, for example.)

  Q. Why is the SWAPPER.DAT file in Warp so much larger than in 2.x? I thought Warp was supposed to use less
  memory than 2.x, not more!
  A. The developers used a number of techniques to improve performance in Warp. One of them was to preload
  a number of .DLL (Dynamic Link Library) files when the system boots up, rather than "demand-load" them as
  needed. While this helps OS/2 to run faster than before, it does require more memory than previously to keep
  those DLLs in memory all day, and will result in more swapping than before with the same memory. (A very
  fast hard disk drive is an advantage here.)

  Q. What DLL files are preloaded by Warp that take up so much swap space?
  A. To see the DLLs running at any given time just use the PSTAT /L command. (Figure 8-1 shows part of an
  example of this.)

  Figure 8 - 1

  Q. Speaking of SWAPPER.DAT performance, would moving it to the root directory improve performance any?
  A. No. Testing on a large number of systems in the lab showed no discernible difference in swap file
  performance whether SWAPPER.DAT was in the root directory, two levels deep (as it defaults), or elsewhere.

  Q. Would moving SWAPPER.DAT to another disk drive or partition improve performance?
  A. It might, depending on how much disk activity the other drive has (if it is less active than the previous drive
  it should help performance), how often the swap file is accessed, and the relative speed difference (if any) of
  the two drives. Try putting SWAPPER.DAT in a little-used directory of the least-frequently-used partition of
  the least-frequently-used hard drive. It can't hurt to try. If the performance doesn't improve you can always
  return it to the previous drive/partition.

  Q. Is there an easier way to keep track of swap file size than doing a DIR of SWAPPER.DAT all the time?
  A. There are a number of utilities that will keep track of this and display the results realtime in a window,
  including IBM's DINFO utility, and OS2MEMU (both freeware), as well as many of the commercial OS/2 utility
  packages. Or, to save the effort of typing DIR d:\pathname\SWAPPER.DAT all the time, you might just create
  a simple .CMD file called SWAP (or even SW) that checks it for you. It won't display the size realtime, but at
  least it is relatively painless to check manually every so often.

Mam nadzieję, że trochę pomogłem. A tak na koniec całkiem szczerze - z
tego co wiem, to problem, który poruszyłeś nie jest rozwiązywalny w
zakresie dostępnych Ci (i nam) środków i czasu. Szkoda się nim zajmować.

Serdecznie pozdrawiam,
Przemysław Pawełczyk

-------------------R--E--K--L--A--M--A---------------------
Szukasz wiedzy? 85 tysiecy uaktualnianych ciagle hasel.
Encyklopedia Internautica: http://encyklopedia.interia.pl/
                



To archiwum zostało wygenerowane przez hypermail 2.1.7 : Tue 18 May 2004 - 15:30:27 MET DST