* Re: Memory allocation question
[not found] ` <3hr62p$n6d@cantaloupe.srv.cs.cmu.edu>
@ 1995-02-15 19:03 ` Morry Katz
0 siblings, 0 replies; 2+ messages in thread
From: Morry Katz @ 1995-02-15 19:03 UTC (permalink / raw)
In article <3hr62p$n6d@cantaloupe.srv.cs.cmu.edu> xli@cs.cmu.edu (~{@hO~~}) writes:
>
> In article <KATZ.95Feb14113754@krypton.elements.rpal.rockwell.com>,
> Morry Katz <katz@rpal.rockwell.com> wrote:
>
>>space. (Any larger request and the malloc fails and returns an
>>error). The machine is configured with the swap spread over two
>>drives. There is roughly 500M of swap on the drives and I can get at
>>most 190M.
>
> Have you tried to increase limit of datasize, it is 131072 kbytes on
> my machine for default. You may put
>
> unlimit
>
> in your .login to put this limit to MAX on you machine.
>
On my machine it is 1048576 kbytes, so this does not seem to be the
problem. Furthermore, unlimit does not seem to be able to change this
parameter to anything larger (or unlimited).
--
------------------------------------------------------
Morry Katz
Rockwell Science Center
administrator@rpal.rockwell.com (machine administration issues)
katz@rpal.rockwell.com (other)
(415)723-9427 (office)
(415)694-9121 (beeper)
------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Memory allocation question
[not found] <KATZ.95Feb14113754@krypton.elements.rpal.rockwell.com>
[not found] ` <3hr62p$n6d@cantaloupe.srv.cs.cmu.edu>
@ 1995-02-17 3:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1 sibling, 0 replies; 2+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1995-02-17 3:00 UTC (permalink / raw)
In article <KATZ.95Feb14113754@krypton.elements.rpal.rockwell.com>, katz@elements.rpal.rockwell.com (Morry Katz) writes:
>I have a need to allocate as much swap space as possible with a single
>malloc. When I attempt this on a DEC Alpha running OSF1, the most
>memory I can get in a single malloc is roughly half of the unused swap
>space. (Any larger request and the malloc fails and returns an
>error). The machine is configured with the swap spread over two
>drives. There is roughly 500M of swap on the drives and I can get at
>most 190M.
Processes have a number of virtual memory limits associated with
them; data size and stack size. There's also a system
limit on the amount of virtual memory a process can have. Malloc
comes from the data size limit. If you're using the C-shell, use
limit to see what you limits are. If you're not using the shell
you'll have to look at the configuration file for maxdsiz (data)
and maxssiz (stack).
The data size limit may be less than the maximum, but you can
use limit to fix that. On my V1.3 system the datasize limit
starts at 128 MB, but the maximum is 1 GB.
>
>Can a single malloc
>effectively allocated space on multiple swap devices, or must one have
>a single swap device as large as the biggest malloc request?
The swap space can be viewed as a single area. Since V1.3 allocations
have been distributed among the area.
You should also check the swap space allocation algorithm to sure
that space IS being allocated (or more correctly, reserved). The
"lazy" algorithm doesn't reserve or allocate any until it is needed.
The "eager" algorithm reserves what it knows it will need in advance,
but also puts off the actual allocation until it is needed.
>Any other ideas????
>--
>------------------------------------------------------
>Morry Katz
>Rockwell Science Center
>administrator@rpal.rockwell.com (machine administration issues)
>katz@rpal.rockwell.com (other)
>(415)723-9427 (office)
>(415)694-9121 (beeper)
>------------------------------------------------------
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-02-17 3:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <KATZ.95Feb14113754@krypton.elements.rpal.rockwell.com>
[not found] ` <3hr62p$n6d@cantaloupe.srv.cs.cmu.edu>
1995-02-15 19:03 ` Memory allocation question Morry Katz
1995-02-17 3:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox