Eating resources equals probing BIG blocks?
[1/7] from: Rebolinth::nodep::dds::nl at: 13-Aug-2003 17:52
Hello All /RT,
Emagine a machine with 640 MB memory and 1 GIG Swap CPU = P4 running (Linux)
(free > 500 MB, SWAP = 0 )
Create a block that contains between 10000 and 50000 blocks
then do a probe on the block...(using the core shell, not from a script!)
My system in not able to handle the the speed that is eaten at that time,
even worse the system completely colapses within 2 minutes, the SWAP
is full and has left only a little memory...
What happens during a Probe? or does it depend whats inside the block?
(In my case the block contains simple copies of open ports)
I reported this some time back also, but now i run into it again...Odd behaviour...
(R)egards,
Norman.
--
Conversation/lunch: "How do you Eat your Rebol in the Morning?"
[2/7] from: greggirwin:mindspring at: 13-Aug-2003 20:08
Hi Norman,
R> Create a block that contains between 10000 and 50000 blocks
R> then do a probe on the block...(using the core shell, not from a script!)
I guess my first question is why you would PROBE a block that large;
that much data isn't too useful in the console.
R> What happens during a Probe? or does it depend whats inside the block?
R> (In my case the block contains simple copies of open ports)
PROBE (you can look at the source), MOLDs the data, so there may be
something about structures that huge being MOLDed that causes a
problem. Is there anything in the blocks? Is the nesting just one
level deep? Are there any circular references? The last issue would be
a problem.
-- Gregg
[3/7] from: antonr:iinet:au at: 14-Aug-2003 11:48
What do your 50000 blocks contain?
The length of a molded port is about 1083 characters.
Anton.
[4/7] from: carl:rebol at: 13-Aug-2003 19:13
Hi Norman,
I followed your instructions and did not find a problem.
Here's what I did:
blk: []
loop 50000 [append/only blk copy []]
probe blk
The system performed all the operations in the blink of an
eye without any problems. And I ran it at 300MHz on a P1 with
128MB mem.
-Carl
[5/7] from: andrew:martin:colenso:school at: 14-Aug-2003 14:12
Gregg wrote:
> Are there any circular references?
Note that in some circumstances, it's possible to generate pattern of
blocks that's impossible for Rebol to write to the console. In my
experience, these were several block! values that referred to each other
in a grid-like pattern. (I can't recall exactly how I created it at the
time)
Andrew J Martin
Attendance Officer &
Information Systems Trouble Shooter
Colenso High School
Arnold Street, Napier.
Tel: 64-6-8310180 ext 826
Fax: 64-6-8336759
http://colenso.net/scripts/Wiki.r?AJM
http://www.colenso.school.nz/
DISCLAIMER: Colenso High School and its Board of Trustees is not responsible (or legally
liable) for materials distributed to or acquired from user e-mail accounts. You can report
any
misuse of an e-mail account to our ICT Manager and the complaint will be investigated.
(Misuse can come in many forms, but can be viewed as any material sent/received that
indicate or suggest pornography, unethical or illegal solicitation, racism, sexism, inappropriate
language and/or other issues described in our Acceptable Use Policy.)
All outgoing messages are certified virus-free by McAfee GroupShield Exchange 5.10.285.0
Phone: +64 6 843 5095 or Fax: +64 6 833 6759 or E-mail: [postmaster--colenso--school--nz]
[6/7] from: Rebolinth:nodep:dds:nl at: 14-Aug-2003 9:13
Quoting carl rebol com:
Hello Carl,
Well i think that i had a block which was filled with
nested blocks and the use of a forever created a dead-loop because
there was a 'none return which was not caugth by the fuction.
I had a construction like:
destination: copy[]
forever [
...
append/only destination function arg1 arg2
...
]
But somehow i guess the destination contianed nested-blocks and it growed
upto 50000 in a flash of a blink.. anyway..the creation was NOT the problem,
the problem came when i did A 'prope' on the block... Uh...
I tried this morning to reproduce it but it did not work, The only thing
I can do is..keep tracking the problem overhere and when it happens again
i'll post the source code (which can several lines ... :-)
Thanks for the reply..when i catch it again ill post the code...
(R)egards,
Norman
[7/7] from: g:santilli:tiscalinet:it at: 14-Aug-2003 14:35
Hi Anton,
On Thursday, August 14, 2003, 3:48:20 AM, you wrote:
A> The length of a molded port is about 1083 characters.
BTW, MOLDing a port is useless IMHO.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/