[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compilation of Web-cache trace convertor
Haobo:
Thanks for your information.
I subistitue heapsort() & strsep() with qsort() & strtok(),
but the type of 1st parameter of strtok (char*) is not matched
with strsep() (char** in the source), I simply did delete a "&"
operator for the 1st parameter for strtok(). Then the source
compiled OK, but when I ran it for converting a 9M UCB trace (4-hour)
and a 14M DEC trace, it has taken more than 12 hours now, still not
producing result, dont know whether it generally takes so long a time
(on Sun Ultra 1).
Kaichuan
On Thu, 8 Jul 1999, Haobo Yu wrote:
> It seems that heapsort() and strsep() are specific to freebsd and other
> BSD4.4 systems. You can replace them with qsort() and strtok(),
> respectively, but with possible performance loss. For example, qsort()
> requires quite a bit stack space for large trace files, but heapsort()
> almost do not require any additional memory.
>
> I'll fix this bug shortly.
>
> - Haobo
>
> On Wed, 7 Jul 1999, Kaichuan He wrote:
>
> > Hi, when I tried to compile the trace convertor
> > under directorey "ns2/indep-utils/webtrace-conv/ucb",
> > It tells me following symbols undefined:
> >
> > Undefined first referenced
> > symbol in file
> > heapsort tr-stat.o
> > strsep
> >
> > Any pointer that where these two functions
> > are located under solaris?
> >
> > Thanks in advance
> >
> >
> > Kevin
> >
> >
> >
>
>