To install Oracle Database 10g, I need to increase the swap memory to 1004 MB. [root@server OpenBravo]# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm Preparing... ########################################### [100%] This system does not meet the minimum requirements for swap space. Based on the amount of physical memory available on the system, Oracle Database 10g Express Edition requires 1004 MB of swap space. This system has 504 MB of swap space. Configure more swap space on the system and retry the installation. error: %pre(oracle-xe-univ-10.2.0.1-1.0.i386) scriptlet failed, exit status 1 error: install: %pre scriptlet failed (2), skipping oracle-xe-univ-10.2.0.1-1.0
Below is my system information. [root@server ~]# cat /proc/meminfo | grep MemTotal MemTotal: 514152 kB [root@server ~]# cat /proc/meminfo | grep SwapTotal SwapTotal: 524280 kB [root@server ~]# ipcs -lm
------ Shared Memory Limits -------- max number of segments = 4096 max seg size (kbytes) = 32768 max total shared memory (kbytes) = 8388608 min seg size (bytes) = 1
Couldsomebody explain how to do this the fastest way? Thanks!
Do you have any disk space to add swap?
On 4/3/07, Pham Hai haisoncompany@gmail.com wrote:
To install Oracle Database 10g, I need to increase the swap memory to 1004 MB. [root@server OpenBravo]# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm Preparing... ########################################### [100%] This system does not meet the minimum requirements for swap space. Based on the amount of physical memory available on the system, Oracle Database 10g Express Edition requires 1004 MB of swap space. This system has 504 MB of swap space. Configure more swap space on the system and retry the installation. error: %pre(oracle-xe-univ-10.2.0.1-1.0.i386) scriptlet failed, exit status 1 error: install: %pre scriptlet failed (2), skipping oracle-xe-univ-10.2.0.1-1.0
Below is my system information. [root@server ~]# cat /proc/meminfo | grep MemTotal MemTotal: 514152 kB [root@server ~]# cat /proc/meminfo | grep SwapTotal SwapTotal: 524280 kB [root@server ~]# ipcs -lm
------ Shared Memory Limits -------- max number of segments = 4096 max seg size (kbytes) = 32768 max total shared memory (kbytes) = 8388608 min seg size (bytes) = 1
Couldsomebody explain how to do this the fastest way? Thanks!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Apr 3, 2007, at 10:49 AM, Pham Hai wrote:
To install Oracle Database 10g, I need to increase the swap memory to 1004 MB.
Couldsomebody explain how to do this the fastest way? Thanks!
Google is your friend.
http://www.netadmintools.com/art1.html http://www.felipecruz.com/adding-linux-swap-space.php
-Mike
On 4/3/07, Pham Hai haisoncompany@gmail.com wrote:
To install Oracle Database 10g, I need to increase the swap memory to 1004 MB.
Tangential aside: Does anyone have an informed opinion on whether the "swap should be double RAM" rule still makes sense?
Couldsomebody explain how to do this the fastest way? Thanks!
Assuming you've got the free disk space:
# dd if=/dev/zero of=swapfile bs=1024 count=512K # mkswap swapfile # swapon swapfile
(replace "swapfile" above with an appropriate path for your system).
Eventually you should make a permanent swap out of a real disk partition, perhaps by adding a drive to the machine.
Bart Schaefer wrote:
On 4/3/07, Pham Hai haisoncompany@gmail.com wrote:
To install Oracle Database 10g, I need to increase the swap memory to 1004 MB.
Tangential aside: Does anyone have an informed opinion on whether the "swap should be double RAM" rule still makes sense?
It never did. I couldn't see why, if I upgraded my Pentium from 64 Mbytes+128 Mbytes I should add swap if I added 128 Mbytes RAM.
Couldsomebody explain how to do this the fastest way? Thanks!
Assuming you've got the free disk space:
# dd if=/dev/zero of=swapfile bs=1024 count=512K # mkswap swapfile # swapon swapfile
(replace "swapfile" above with an appropriate path for your system).
Eventually you should make a permanent swap out of a real disk partition, perhaps by adding a drive to the machine.
Why?
On Tue, Apr 03, 2007 at 11:20:41PM +0800, John Summerfield wrote:
Bart Schaefer wrote:
On 4/3/07, Pham Hai haisoncompany@gmail.com wrote:
To install Oracle Database 10g, I need to increase the swap memory to 1004 MB.
Tangential aside: Does anyone have an informed opinion on whether the "swap should be double RAM" rule still makes sense?
It never did. I couldn't see why, if I upgraded my Pentium from 64
It used to make sense on older BSD systems (eg SunOS 4) because of how the virtual memory paging system worked. If you had 'n' Mb of RAM then the first 'n' Mb of swap was used to "shadow" RAM somehow (I'm hazy on the details) and so if you had '2n' of swap then you only had '2n' of virtual memory, not the '3n' you'd expect. Linux never did this and I believe newer BSDs don't either. The "swap=2*RAM" never made sense for Linux.
Mbytes+128 Mbytes I should add swap if I added 128 Mbytes RAM.
Under the older BSDs adding memory without increasing swap didn't result in larger VM sizes because of the above description. Fun, huh? :-)
On 4/3/07, John Summerfield debian@herakles.homelinux.org wrote:
Bart Schaefer wrote:
Eventually you should make a permanent swap out of a real disk partition, perhaps by adding a drive to the machine.
Why?
That may be anoher "informed opinion" question. I'm pretty sure that at one time it was the case that it was more efficient to swap to a device than to a file. Also at boot time it'd be nice to mount the swap before mounting the filesystems read/write. And I would think it's better to have all the swap in one continuous partition if you can.
Of course the other thing he could do is swapoff and remove the file once oracle is installed, on the grounds that the oracle engineers don't know what they're talking about.
Bart Schaefer wrote:
On 4/3/07, John Summerfield debian@herakles.homelinux.org wrote:
Bart Schaefer wrote:
Eventually you should make a permanent swap out of a real disk partition, perhaps by adding a drive to the machine.
Why?
That may be anoher "informed opinion" question. I'm pretty sure that at one time it was the case that it was more efficient to swap to a
Arguably it was so, but then there's the convenience and the circumstances. The answers, I suspect, were always different between multidisk servers where one could dedicate a disk to the task, and the typical desktop system with one partition.
Take a CD-R someone's burned. You can see from the surface what's recorded on, what isn't.
Pretend the recorded-on bit is your data on the hard drive, the rest is the swap.
I reckon the kernel's footwork would have to be better than Fred Astaire's, to make up for the distance the heads have to seek back and forth.
A swap file could, of course, be at the edge of the recorded-on area, but then there's a good chance it's some place in the middle.
A means of placing a file in a "good" location would be handy.
However, one of the improvements in the 2.6 kernel is changes to swapping such that the partition no longer has the advantage.
device than to a file. Also at boot time it'd be nice to mount the swap before mounting the filesystems read/write. And I would think
Why? How much swap do you need to run fsck?
it's better to have all the swap in one continuous partition if you can.
Of course the other thing he could do is swapoff and remove the file once oracle is installed, on the grounds that the oracle engineers don't know what they're talking about.
Which is almost certainly the case, at least in some environments. If you can do disk I/O at four gigabytes/sec, swapping isn't nearly as harmful:-)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, Apr 03, 2007 at 08:07:53AM -0700, Bart Schaefer wrote:
On 4/3/07, Pham Hai haisoncompany@gmail.com wrote:
To install Oracle Database 10g, I need to increase the swap memory to 1004 MB.
Tangential aside: Does anyone have an informed opinion on whether the "swap should be double RAM" rule still makes sense?
The original rule (still valid, AFAIC) was:
"swap should be NO MORE than the double RAM"
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
On Tuesday 03 April 2007 08:31 am, Rodrigo Barbosa wrote:
The original rule (still valid, AFAIC) was:
"swap should be NO MORE than the double RAM"
I've been around a while, and used Linux since somewhere around '94/'95 (an old Slackware distribution at that time, based on Linux kernel version 0.99, iirc).
If you had very little memory, you probably wanted a lot of swap, and in those days you didn't have much memory.
Or how about Xenix running on a TRS-80 Model 2000, with 128K (not M, K) of memory, then you might have wanted swap of double memory.
Somehow, somewhere I got into my head that you wanted at least the same swap as memory, because if linux dumped it would try to write it's memory into the swap partition first if it could, for later examination.
That's never been true, and I was disabused of my erroneous notion (and embarrassed just a bit) when I asked the question of Robert Love; based on his book "Linux Kernel Development",
http://www.amazon.com/Linux-Kernel-Development-Robert-Love/dp/0672325128
I think he knows a bit about the kernel.
<smile>
Jeff
----- "Rodrigo Barbosa" rodrigob@darkover.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, Apr 03, 2007 at 08:07:53AM -0700, Bart Schaefer wrote:
On 4/3/07, Pham Hai haisoncompany@gmail.com wrote:
To install Oracle Database 10g, I need to increase the swap memory to 1004 MB.
Tangential aside: Does anyone have an informed opinion on whether the "swap should be double RAM" rule still makes sense?
The original rule (still valid, AFAIC) was:
"swap should be NO MORE than the double RAM"
Well, on old unix systems (Solaris, AIX), if you didn't have swap at least the double of RAM you can't use all your RAM.
But, back then 64Mb RAM was a lot of RAM.
Antonio.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, Apr 03, 2007 at 04:48:05PM -0300, Antonio da Silva Martins Junior wrote:
On Tue, Apr 03, 2007 at 08:07:53AM -0700, Bart Schaefer wrote:
On 4/3/07, Pham Hai haisoncompany@gmail.com wrote:
To install Oracle Database 10g, I need to increase the swap memory to 1004 MB.
Tangential aside: Does anyone have an informed opinion on whether the "swap should be double RAM" rule still makes sense?
The original rule (still valid, AFAIC) was:
"swap should be NO MORE than the double RAM"
Well, on old unix systems (Solaris, AIX), if you didn't have swap at least the double of RAM you can't use all your RAM.
But, back then 64Mb RAM was a lot of RAM.
Can't use all RAM ? Are you sure about that ?
I clearly remember (Linxu and AIX on this one) that if you had more than double, you would not use all your SWAP. RAM is always accessible ...
[]s
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
On Wed, Apr 04, 2007 at 12:26:49PM -0300, Rodrigo Barbosa wrote:
On Tue, Apr 03, 2007 at 04:48:05PM -0300, Antonio da Silva Martins Junior wrote:
Well, on old unix systems (Solaris, AIX), if you didn't have swap at least the double of RAM you can't use all your RAM.
But, back then 64Mb RAM was a lot of RAM.
Can't use all RAM ? Are you sure about that ?
On OLD systems, yes. You'd be limited by swap, not ram.
I clearly remember (Linxu and AIX on this one) that if you had more than double, you would not use all your SWAP. RAM is always accessible ...
That always depends on the workload, but I prefer to have processes being killed by OOM instead of having the machine thrashing about. So I usually don't use more than 1GB.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Apr 04, 2007 at 04:44:21PM +0100, Luciano Miguel Ferreira Rocha wrote:
On Wed, Apr 04, 2007 at 12:26:49PM -0300, Rodrigo Barbosa wrote:
On Tue, Apr 03, 2007 at 04:48:05PM -0300, Antonio da Silva Martins Junior wrote:
Well, on old unix systems (Solaris, AIX), if you didn't have swap at least the double of RAM you can't use all your RAM.
But, back then 64Mb RAM was a lot of RAM.
Can't use all RAM ? Are you sure about that ?
On OLD systems, yes. You'd be limited by swap, not ram.
Well, I really can't say how things were before AIX 3. So if you are talking about AIX 1 or 2, I'll just rest my peace.
I clearly remember (Linxu and AIX on this one) that if you had more than double, you would not use all your SWAP. RAM is always accessible ...
That always depends on the workload, but I prefer to have processes being killed by OOM instead of having the machine thrashing about. So I usually don't use more than 1GB.
Oh, but that is what we have today. Today neither limits apply. Only common sense, which is what you are saying (OOM vs thrashing).
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)