Could someone please explain how you know how much swap space you have on your system. See below:
Code:
# swap -stotal: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available# swap -lswapfile dev swaplo blocks free/dev/dsk/c3t0d0s1 32,25 16 4100912 4100912/data/swap/swap2048m - 16 4194288 4194288#format1 swap wu 0 - 402 1.96GB (403/0/0) 4100928#df -hswap 3.8G 1.0M 3.8G 1% /etc/svc/volatileswap 3.8G 144K 3.8G 1% /tmpswap 3.8G 48K 3.8G 1% /var/runadmin@sealyaus1 # swap -stotal: 8215744k bytes allocated + 4867656k reserved = 13083400k used, 4013088k availabletotal: 8215744k bytes allocated - the total amount of swap space, in units of 1024-byte blocks, that is currently allocated as disk-backed swap space.4867656k reserved - the total amount of swap space, in units of 1024-byte blocks, that is not currently allocated but is claimed by memory for future use.13083400k used - the total amount of swap space, in units of 1024-byte blocks, that is allocated plus reserved.4013088k available - the total amount of swap space, in units of 1024-byte blocks that is currently available for future use (ie for reservation and allocation)
The total = 8215744k from swap -s command using format = 1.96GB df -h = 3.8GB
Does the total from the 2 swap spaces in the swap -l command equal the df -h value ie 1.96GB + 2048mb, if so where does the rest come from to get total 8215744k
All,
I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space?
Please list sources or commands.
PS mkswap doesn't work on my machine. ( I have swap and... (5 Replies)
I checked the server and issued various command to investigated. but from teh output of swap -s and swap -l,
i received the following
swap -l
swapfile dev swaplo blocks free
/dev/vx/dsk/swapvol 197,7 16 4194800 4127696
/dev/vx/dsk/swap2 197,8 16 12582896... (3 Replies)
Hi,
i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :-
1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
1057 ls -l /root/myswapfile
1058 chmod 600 /root/myswapfile
1059 mkswap /root/myswapfile
1060 swapon /root/myswapfile
... (1 Reply)
Dear All,
I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,.
Any reasons for this.
Rgds
Rj (5 Replies)
CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working.
Any one here dealt with the same kind of... (2 Replies)
I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this.
# parted -s /dev/sda print free
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 38.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
... (1 Reply)
Discussion started by: Mukul Sharma
1 Replies
LEARN ABOUT DEBIAN
merge_fonts
merge_fonts(3alleg4) Allegro manual merge_fonts(3alleg4)NAME
merge_fonts - Merges two fonts into one font. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
FONT *merge_fonts(FONT *f1, FONT *f2)
DESCRIPTION
This function merges the character ranges from two fonts and returns a new font containing all characters in the old fonts. In general, you
cannot merge fonts of different types (eg, TrueType fonts and bitmapped fonts), but as a special case, this function can promote a mono-
chrome bitmapped font to a color font and merge those. Example:
FONT *myfont;
FONT *myfancy_font;
FONT *lower_range;
FONT *upper_range;
FONT *capitals;
FONT *combined_font;
FONT *tempfont;
...
/* Create a font that contains the capitals from */
/* the fancy font but other characters from myfont */
lower_range = extract_font_range(myfont, -1, 'A'-1);
upper_range = extract_font_range(myfont, 'Z'+1, -1);
capitals = extract_font_range(myfancy_font, 'A', 'Z');
tempfont = merge_fonts(lower_range, capitals);
combined_font = merge_fonts(tempfont, upper_range);
/* Clean up temporary fonts */
destroy_font(lower_range);
destroy_font(upper_range);
destroy_font(capitals);
destroy_font(tempfont);
RETURN VALUE
Returns a pointer to the new font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it
to avoid memory leaks.
SEE ALSO extract_font_range(3alleg4), is_trans_font(3alleg4), is_color_font(3alleg4), is_mono_font(3alleg4), exfont(3alleg4)Allegro version 4.4.2 merge_fonts(3alleg4)