Hello,
I checked out a few things:
1) I checked what value RandomVariable/Constant is giving in webcache/webtraf.cc.
I added the below lines to the example script and I get 1 irrespect to what value I set it to.
set pageSize [new RandomVariable/Constant -val_ 3]
set p [$pageSize value]
puts "$p"
Output: 1.00000e+00.
2) So I hard coded the Page Size to be 3 for each page created. This causes a core dump.
In the function "void WebTrafSession::expire(Event *)", a new Web Page is created
by this function
WebPage* pg = new WebPage(LASTPAGE_++, this,
(int)ceil(rvPageSize_->value()), dst);
To address the memory issue, I'm running ns-2 on a PII-400 with 64Mb of Ram using
the tcl/ex/web-traffic.tcl. So I do not think memory is an issue.
Thanks.
Peter
[email protected]
-----Original Message-----
From: Guo, Liang [SMTP:[email protected]]
Sent: Friday, December 03, 1999 6:44 AM
To: Pieda, Peter [CAR:0R31:EXCH]
Cc: '[email protected]'
Subject: Re: Core Dump when PagePool/WebTraf - Page Size > 1??
You might run out of your memory, you have to adjust your
traffic (reduce other parameters), use 'top' to monitor your
memory usage.
On Fri, 3 Dec 1999, Peter Pieda wrote:
> > Hello everyone,
> >
> > I'm using the new PagePool/Webtraf model.
> >
> The example script runs fine. I increased the number of sessions and pages
> with no problems.
> But, When I tried to change the PageSize to say 2 or 10, NS Core Dumps.
>
> > This model takes four parameters:
> > PageSize - How many objects you want on a particular page
> > InterPage - the time inbetween page accesses
> > ObjSize - the size of each object
> > InterObj - the time between objects
> >
> > In the example script, they setup InterPage and InterObj as Exponential
> > Random Variables,
> > ObjSize as a ParetoII RandomVariable, and then set PageSize as a Random
> > constant of 1.
> >
> > What is happening here?
> >
> > Any help available?
> >
> I'm using the Nov 21 daily snapshot of ns-2.
>
> Thanks
>
> > Peter
> > [email protected]
>
Guo, Liang
[email protected] Dept. of Comp. Sci., Boston Univ.,
(617)353-8924 (O) 111 Cummington St., MCS-217,
(617)375-9206 (H) Boston, MA 02215