🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11568

Re: Program hangs under heavy system load

#11568
From: Dmitry Mikhilov
Date: Thu, 05 Feb 2004 15:32
49 lines
3085 bytes
Bill,

I know generally how swapping works and what is happening in my case is not
a question of "how long does it take for an application to restore". When I
click to my application's icon on Windows taskbar simply nothing happens -
there's no disk activity, nothing is paged in or out.  CPU usage remains
near zero... Maybe something is wrong with message queueing?

BTW, with other programs except mine everything is OK. Say, minimized MS
Word easily restores after some more or less intensive swapping. I just do
not understand why my application suddenly becomes deaf only when being
minimized.

Dmitry

"BillT" <billtouch_no_spam@att.net> wrote?:
news:40225e6a$3@newsgroups.borland.com...
> Paging in and out is a queue. When Corel#1 needs some ram, the request is
> either satisfied right away, if available, or queued. When the required
ram is
> fully used, then Corel#1 waits unitl something can be freed (paged out).
> Corel#2 needs some ram and it is also queued. Then comes your process and
> wants its share of ram and it is queued. The Corels tend to page lots of
pages
> at a time. Plus, Drawing programs do clean up of their memory from time to
> time. For it to free some ram, All of the pages of buffer get paged in to
free
> it. This is because, running programs have no knowledge of paging - and
paging
> has no idea that all the program is going to do is release it. So all
these
> things on the queue in front of you will slow you down. Add to this, any
other
> disk activity on the same disk as your swap file. That can cause serious
> thrashing.
>
> The only real answer is to add more ram or reduce the demands on the
available
> ram.
>
> I wasn't necessarily suggesting your program was the offender. Corel's low
> memory handling could be the culprit. I never used Corel, but Photoshop
> implements its own paging-temp file to be used when it runs low on memory.
> That tends to complicate the paging issue. If Corel does this, make sure
it is
> on a different disk than Windows swap file.
>
> Bill
>
Technical Details
Message-ID: <4022626b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40042458@newsgroups.borland.com> <4021a2c0@newsgroups.borland.com> <4021eaf6@newsgroups.borland.com> <40225e6a$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,86618364f504b0ba
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-05 07:40:27 PST
From: "Dmitry Mikhilov" <dm1@fromru.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40042458@newsgroups.borland.com> <4021a2c0@newsgroups.borland.com> <4021eaf6@newsgroups.borland.com> <40225e6a$3@newsgroups.borland.com>
Subject: Re: Program hangs under heavy system load
Date: Thu, 5 Feb 2004 18:32:54 +0300
Lines: 51
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 195.131.110.226
Message-ID: <4022626b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075995243 195.131.110.226 (5 Feb 2004 07:34:03 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail