Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Tru 64 Memory

SOLVED
Go to solution
Paul Stanard
Regular Advisor

Tru 64 Memory

I am running an Alpha Server with Tru64 5.1B loaded on it. I have math simulation software loaded on it and when I go to set the memory in the software i get the message "refuses to provide memory".

The reason for this is that the software is looking to the swap space for memory. Any reason why that is? or How can I get the software to point to the right memory? Or is there a file that should be created or adjusted? Please feel free to request clarification.
29 REPLIES
Michael Schulte zur Sur
Honored Contributor

Re: Tru 64 Memory

Hi,

please post
swapon -s
sysconfig -q vm | grep eager

Michael
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

swapon -s:

swap partition /dev/vol/rootdg/swapvol (default swap)
allocated space: 49152 pages (384MB)
In-use space: 1 (0%)
Free Space: 49151 pages (99%)

Total Swap allocation
allocated space: 49152 pages (384MB)
Reserved space 10117 pages (20%)
In-use space: 1 (0%)
Available space 39035 pages (79%)

sysconfig -q vm|grep eager
vm_swap_eager = 1
Johan Brusche
Honored Contributor

Re: Tru 64 Memory


How much memory is the program trying to allocated, and what is the output of

/sbin/sysconfig -q proc | grep per_proc ?

JB.

_JB_
Michael Schulte zur Sur
Honored Contributor

Re: Tru 64 Memory

Hi,

this is what I expected. How much memory do you have in that machine? 384mb swap is not enough, if you have more then 128mb memory, escpecially if you use eager swapping. Do you have an extra partition on hand, you can add to the swap. If not, you should at least set vm_swap_eager = 0.

Michael
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

/sbin/sysconfig - q proc|grep per_proc

per_proc_stack_size = 8388608
max_per_proc_stack_size = 33554432
per_proc_data_size = 134217728
max_per_proc_data_size = 1073741824
max_per_proc_address_space = 4294967296
per_proc_address_space = 4294967296

How could I check the filesystems, lvols and the available space command line? Bdf doesnt work on tru64 like hpux?

We have gigs to burn for the swap
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

I think what i want to do is to add another disk to the swap using swapon command. How can I display all the disks so that i can see which ones to add?
Michael Schulte zur Sur
Honored Contributor

Re: Tru 64 Memory

Hi,

hwmgr -show scsi. Then have a look at the partitions on these disks. The partition must be unused and not overlapping with another used one.

Michael
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

hwmgr -show scsi

HWID Scsi ID Host Device driverowner
36 0 AlphaServer disk 2
37 1 AlphaServer cdrom 2
38 2 AlphaServer disk 2
39 3 AlphaServer disk 0
40 4 AlphaServer disk 0
41 5 AlphaServer disk 0
42 6 AlphaServer disk 0
43 7 AlphaServer disk 0
44 8 AlphaServer disk 0
45 9 AlphaServer disk 0

device file dsk0..cdrom0...dsk1..dsk2..dsk8
Michael Schulte zur Sur
Honored Contributor

Re: Tru 64 Memory

Now make a list with showfdmn -k of all your domains. Then you can see, which partitions are still free. Do you have databases which use raw devices? If not, this should be easy then. Calculate roughly swap=memory*2

can you post as attachment the output of showfdmn -k of your domains as well as disklabel -r dsk0 ... dsk8
and how much memory you have in your machine?

Michael
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

see attachment
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

disks 2-8 read as follows:

disklabel: disk /dev/rdisk/diskxC is unlabeled
Michael Schulte zur Sur
Honored Contributor
Solution

Re: Tru 64 Memory

Hi,

I assume, that the hsz70 does the mirroring of the dsk2..dsk8? One more information I need to give you an advice. volprint -Aht to see, who is using dsk1. Could you post that too as attachment?

I will probably suggest the following. Create a disklabel on a 18gb disk and add it to swap.
disklabel -wr -t advfs dsk2a
swapon dsk2b

Then you can try your software, it it works then. It should.

Michael
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

volprint -Aht

dm dskod dskod simple 4096 0
dm dsk1d dsk1d simple 4096 0
dm root01 dskoa nopriv 0 786432
dm swap01 dskob nopriv 0 786432
dm usr01 dskog nopriv 0 43800800


Michael Schulte zur Sur
Honored Contributor

Re: Tru 64 Memory

Hi,

do as I said in the last posting and tell me, how it worked.

Michael
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

disklabel -wr -t advfs dsk2a (worked fine)
swapon dsk2b (no such file or directory)

so then I did,
disklabel -r dsk2
it reads /dev/rdisk/dsk2c:

so i tried
swapon dsk2c (no such file or directory)
Johan Brusche
Honored Contributor

Re: Tru 64 Memory


did you "man swapon" ?
via the examples you would have found
swapon /dev/disk/dsk2c

JB.

_JB_
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

i figured it out
Michael Schulte zur Sur
Honored Contributor

Re: Tru 64 Memory

So swapon -s should show 18gb more space and the programmes should have enough memory.

Michael
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

yes it does...i owe you lunch
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

Do I have to edit the file sysconfigtab because I only see the first swap disks in that file.

Problem still persist when I attempt to set memory in the application.
Johan Brusche
Honored Contributor

Re: Tru 64 Memory


If you want the secondary swap to be present after a reboot then it must be in /etc/sysconfigtab
As long as the system stays up, you can see that it is active with "swapon -s"

your per_proc_data_size is only 134 MB, is that enough for that program ??

Johan.

_JB_
Paul Stanard
Regular Advisor

Re: Tru 64 Memory

no it is not. I added an 18 GB disk to the swap so I would like to at least use a few gigs
Michael Schulte zur Sur
Honored Contributor

Re: Tru 64 Memory

We have these lines in our sysconfigtab.
per_proc_stack_size = 33554432
per_proc_data_size = 1073741824

Michael

Paul Stanard
Regular Advisor

Re: Tru 64 Memory

I dont see the per_proc_stack_size or the per_proc_data_size in my sysconfigtab.

Should I add them? Bare with me :)