[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Core Dump when PagePool/WebTraf - Page Size > 1?



Title: RE: Core Dump when PagePool/WebTraf - Page Size > 1?

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]