11-29-2013
It's not 'used' as in 'the system is desperately out of RAM and turfing things onto disk to make room', but 'used' as in 'we have 5 gigabytes of swap reserved to match currently allocated memory'. Most UNIX systems reserve swap in advance, so that if conditions suddenly do become tight, the system doesn't find itself overextended i.e. there's more RAM been given away than it has swap space to deal with.
These 3 Users Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. Solaris
Hello and thanks in advance.
I have a Sun box with raid 1 on the O/S disks using solaris svm.
I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space.
I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
2. UNIX for Dummies Questions & Answers
ls displays files in tabbed output. Say a directory contains 3 files. ls will list all 3 in one line. So, I expect ls | wc -l to give 1, but it counts the nr of files and gives 3.
Can someone explain how this works? (3 Replies)
Discussion started by: krishmaths
3 Replies
3. Programming
pls explain me how this works....
DECODE (SUBSTR (field, 1, 1),'''', '''''' || field || '''','''' || field || '''')
here field is a column in an oracle table.... (7 Replies)
Discussion started by: vijay_0209
7 Replies
4. UNIX for Dummies Questions & Answers
When I try to execute script, I get message:
>aa.pl
zsh: command not found: aa.pl
but
>./aa.pl
works OK.
What to change in environment to force the former way to work?
Thank you,
Alex Z (4 Replies)
Discussion started by: zzol
4 Replies
5. Red Hat
free -m : 1023 total swap space
created default partition /dev/sdb1 50M using fdisk. i did write the changes.
#mkswap /dev/sdb1
#swapon /dev/sdb1
free -m : 1078 total swap space
this shows that the swap is on
Question : i did not change the type LINUX SWAP (82) in fdisk.
so why is... (5 Replies)
Discussion started by: dplinux
5 Replies
6. HP-UX
Hi
I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system:
- I would like to know when does the memory swap space spill over to the device swap space?
- And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies
7. UNIX for Advanced & Expert Users
I have a program............
#include<stdio.h>
#include<unistd.h>
main()
{
if(fork == 0)
{
printf("Hi every body:p!!!!!!!!!!");
}
}
This program works with out any error. here fork is not a system call. It just act as a variable.But how it works without declaring it? What data type it... (19 Replies)
Discussion started by: carolsanjeevi
19 Replies
8. Solaris
Hi All,
I want to know how to understand the actual swap size.
My o/p shows as below
root@ecovs1a # swap -s
total: 4546056k bytes allocated + 358856k reserved = 4904912k used, 5046688k available
root@ecovs1a # swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d31 ... (9 Replies)
Discussion started by: vivek.goel.piet
9 Replies
9. Solaris
Hi Solaris Folks :),
I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands.
$swap -s
total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available
$swap -l
swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies
10. AIX
Please take your time to answer/comment. no urgency. it would help upcoming sysadmins like me in understanding how things work in real time.
OS: AIX
Middleware: Weblogic/WAS
Database: Oracle DB/IBM DB2
Backup s/w tools: not available as of now (except native OS commands/utilities)
I'm a... (5 Replies)
Discussion started by: aaron8667
5 Replies
LEARN ABOUT DEBIAN
glib::flags
Glib::Flags(3pm) User Contributed Perl Documentation Glib::Flags(3pm)
NAME
Glib::Flags - Overloaded operators representing GLib flags
HIERARCHY
Glib::Flags
DESCRIPTION
Glib maps flag and enum values to the nicknames strings provided by the underlying C libraries. Representing flags this way in Perl is an
interesting problem, which Glib solves by using some cool overloaded operators.
The functions described here actually do the work of those overloaded operators. See the description of the flags operators in the "This
Is Now That" section of Glib for more info.
METHODS
scalar = $class->new ($a)
o $a (scalar)
Create a new flags object with given bits. This is for use from a subclass, it's not possible to create a "Glib::Flags" object as such.
For example,
my $f1 = Glib::ParamFlags->new ('readable');
my $f2 = Glib::ParamFlags->new (['readable','writable']);
An object like this can then be used with the overloaded operators.
scalar = $a->all ($b, $swap)
o $b (scalar)
o $swap (scalar)
aref = $f->as_arrayref
Return the bits of $f as a reference to an array of strings, like ['flagbit1','flagbit2']. This is the overload function for "@{}", ie.
arrayizing $f. You can call it directly as a method too.
Note that @$f gives the bits as a list, but as_arrayref gives an arrayref. If an arrayref is what you want then the method style
somefunc()->as_arrayref can be more readable than [@{somefunc()}].
bool = $f->bool
Return 1 if any bits are set in $f, or 0 if none are set. This is the overload for $f in boolean context (like "if", etc). You can call
it as a method to get a true/false directly too.
integer = $a->eq ($b, $swap)
o $b (scalar)
o $swap (integer)
integer = $a->ge ($b, $swap)
o $b (scalar)
o $swap (integer)
scalar = $a->intersect ($b, $swap)
o $b (scalar)
o $swap (scalar)
integer = $a->ne ($b, $swap)
o $b (scalar)
o $swap (integer)
scalar = $a->sub ($b, $swap)
o $b (scalar)
o $swap (scalar)
scalar = $a->union ($b, $swap)
o $b (scalar)
o $swap (scalar)
scalar = $a->xor ($b, $swap)
o $b (scalar)
o $swap (scalar)
SEE ALSO
Glib
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Glib for a full notice.
perl v5.14.2 2012-05-24 Glib::Flags(3pm)