pspp-dev
[Top][All Lists]
Advanced

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

Re: Workspace size


From: Ben Pfaff
Subject: Re: Workspace size
Date: Fri, 25 Jul 2008 21:35:58 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

John Darrington <address@hidden> writes:

> 1.  I propose that the restriction that it must be >= 1MB be removed
>     if the program has been started with --testing-mode.  This allows
>     us to run certain tests without  enormous numbers of cases (hence
>     taking 10 minutes per test).

OK.

> 2.  My interpretation of how the Chicago company treats this setting
>     is different from what we use it for.   If we're going to emulate
>     their semantics, then it ought to do something like:
>
>     struct rlimit limit = {x, RLIM_INFINITY};
>     setrlimit (RLIMIT_AS, &limit);
>
>     whereas we currently use it to set an upper limit on the number of
>     cases stored in memory, which is also useful, but perhaps we
>     should change the name of the current setting?

I don't understand your interpretation of SET WORKSPACE.  The v16
manual says: 

    WORKSPACE allocates more memory for some procedures when you
    receive a message indicating that the available memory has
    been used up or indicating that only a given number of
    variables can be processed... WORKSPACE allocates workspace
    memory in kilobytes for some procedures that allocate only
    one block of memory.

Isn't limiting the number of cases stored in memory a reasonable
approximation of that behavior?
-- 
"The road to hell is paved with convenient shortcuts."
--Peter da Silva




reply via email to

[Prev in Thread] Current Thread [Next in Thread]