Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: attempting to increase SHMMAX
@ 2000-05-30 14:11 Christina Clark
  2000-05-30 14:25 ` Rich Payne
  2000-05-30 19:37 ` W Bauske
  0 siblings, 2 replies; 6+ messages in thread
From: Christina Clark @ 2000-05-30 14:11 UTC (permalink / raw)
  To: axp-list

Greetings,

I am setting up an Oracle 8i Server on Intel RedHat 6.2 (kernel
2.2.14-5.0).

I am very happy with the way the kernel is behaving and only want to
increase SHMMAX from 32 megs to 128 megs (half my physical memory).

The detailed steps I took to change and recompile the kernel follow
below and the process went fine, but when I do an
ipcs -lm
after booting on the new kernel, I still see max seg size (kbytes) =
32768

Can anyone explain what I am missing or if I should be going about this
a different way?

Regards,
ckclark


Here is what I did.
[root@ckclark-pc src]# cd /usr/src
(copied to a working directory with o suffix for oracle  --paranoia)
[root@ckclark-pc src]# cp -r linux-2.2.14-5.0 linux-2.2.14-5.0o
Made following change to Makefile:
EXTRAVERSION = -5.0o

Made some links:
[root@ckclark-pc src]# ln -s linux-2.2.14-5.0o linux
[root@ckclark-pc src]# cd linux/include
[root@ckclark-pc include]# ln -s asm-i386 asm
[root@ckclark-pc asm]#
Edited /usr/src/linux-2.2.14-5.0o/include/asm/shmparam.h to have:

#define SHMMAX 0x8000000                /* max shared seg size (bytes)
*/

[root@ckclark-pc asm]# cd ../../
Created my .config file to be like the one I'm already using:
[root@ckclark-pc linux]# make oldconfig
Make .depend, .hdepend, recompile
[root@ckclark-pc linux]# make dep; make clean; make bzImage; make
modules; make modules_install

Copied bzImage and System.map to /boot as vmlinuz-2.2.14-5.0o and
System.map-2.2.14-5.0o.
Created links from /boot/vmlinuz and /boot/System.map to these files.
Setup lilo.conf:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
linear
default=linuxo

image=/boot/vmlinuz-2.2.14-5.0
        label=linux
        read-only
        root=/dev/hda10

image=/boot/vmlinuz-2.2.14-5.0o
        label=linuxo
        read-only
        root=/dev/hda10

Ran lilo and rebooted with the new kernel.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: attempting to increase SHMMAX
  2000-05-30 14:11 Christina Clark
@ 2000-05-30 14:25 ` Rich Payne
  2000-05-30 19:37 ` W Bauske
  1 sibling, 0 replies; 6+ messages in thread
From: Rich Payne @ 2000-05-30 14:25 UTC (permalink / raw)
  To: axp-list; +Cc: ckclark

On Tue, 30 May 2000, Christina Clark wrote:

> Greetings,
> 
> I am setting up an Oracle 8i Server on Intel RedHat 6.2 (kernel
					 ^^^^^

I think you have the wrong list, axp-list is for Alpha machines not Intel.

--rdp
 
 
> I am very happy with the way the kernel is behaving and only want to
> increase SHMMAX from 32 megs to 128 megs (half my physical memory).
> 
> The detailed steps I took to change and recompile the kernel follow
> below and the process went fine, but when I do an
> ipcs -lm
> after booting on the new kernel, I still see max seg size (kbytes) =
> 32768
> 
> Can anyone explain what I am missing or if I should be going about this
> a different way?
> 
> Regards,
> ckclark
> 
> 
> Here is what I did.
> [root@ckclark-pc src]# cd /usr/src
> (copied to a working directory with o suffix for oracle  --paranoia)
> [root@ckclark-pc src]# cp -r linux-2.2.14-5.0 linux-2.2.14-5.0o
> Made following change to Makefile:
> EXTRAVERSION = -5.0o
> 
> Made some links:
> [root@ckclark-pc src]# ln -s linux-2.2.14-5.0o linux
> [root@ckclark-pc src]# cd linux/include
> [root@ckclark-pc include]# ln -s asm-i386 asm
> [root@ckclark-pc asm]#
> Edited /usr/src/linux-2.2.14-5.0o/include/asm/shmparam.h to have:
> 
> #define SHMMAX 0x8000000                /* max shared seg size (bytes)
> */
> 
> [root@ckclark-pc asm]# cd ../../
> Created my .config file to be like the one I'm already using:
> [root@ckclark-pc linux]# make oldconfig
> Make .depend, .hdepend, recompile
> [root@ckclark-pc linux]# make dep; make clean; make bzImage; make
> modules; make modules_install
> 
> Copied bzImage and System.map to /boot as vmlinuz-2.2.14-5.0o and
> System.map-2.2.14-5.0o.
> Created links from /boot/vmlinuz and /boot/System.map to these files.
> Setup lilo.conf:
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> linear
> default=linuxo
> 
> image=/boot/vmlinuz-2.2.14-5.0
>         label=linux
>         read-only
>         root=/dev/hda10
> 
> image=/boot/vmlinuz-2.2.14-5.0o
>         label=linuxo
>         read-only
>         root=/dev/hda10
> 
> Ran lilo and rebooted with the new kernel.
> 
> 

-- 
Rich Payne
rpayne@alphalinux.org			www.alphalinux.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: attempting to increase SHMMAX
  2000-05-30 14:11 Christina Clark
  2000-05-30 14:25 ` Rich Payne
@ 2000-05-30 19:37 ` W Bauske
  2000-05-31 13:24   ` Natesa Sabapathy
  1 sibling, 1 reply; 6+ messages in thread
From: W Bauske @ 2000-05-30 19:37 UTC (permalink / raw)
  To: axp-list

Christina Clark wrote:
> 
> Greetings,
> 
> I am setting up an Oracle 8i Server on Intel RedHat 6.2 (kernel
> 2.2.14-5.0).
> 
> I am very happy with the way the kernel is behaving and only want to
> increase SHMMAX from 32 megs to 128 megs (half my physical memory).
> 

There is a variable at /proc/sys/kernel/shmmax
that you can use to change the running kernel's shmmax value.
just use "echo 131072000 >  /proc/sys/kernel/shmmax" at the
command line or in your rc.local script at boot.


Wes


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: attempting to increase SHMMAX
  2000-05-30 19:37 ` W Bauske
@ 2000-05-31 13:24   ` Natesa Sabapathy
  0 siblings, 0 replies; 6+ messages in thread
From: Natesa Sabapathy @ 2000-05-31 13:24 UTC (permalink / raw)
  To: axp-list

Hi Wes,

How do you arrive at 131072000 for 128 MB ?

Thanks
W Bauske wrote:

> Christina Clark wrote:
> >
> > Greetings,
> >
> > I am setting up an Oracle 8i Server on Intel RedHat 6.2 (kernel
> > 2.2.14-5.0).
> >
> > I am very happy with the way the kernel is behaving and only want to
> > increase SHMMAX from 32 megs to 128 megs (half my physical memory).
> >
>
> There is a variable at /proc/sys/kernel/shmmax
> that you can use to change the running kernel's shmmax value.
> just use "echo 131072000 >  /proc/sys/kernel/shmmax" at the
> command line or in your rc.local script at boot.
>
> Wes
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com




^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: attempting to increase SHMMAX
@ 2000-05-31 13:33 Hoover, Tony
  2000-05-31 17:53 ` W Bauske
  0 siblings, 1 reply; 6+ messages in thread
From: Hoover, Tony @ 2000-05-31 13:33 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

actually that figure is 128 thousand kilobytes, which should be close
enough. To figure the actual value for 128MB, take 128 * 1024 (kilobytes in
a meg) * 1024 (bytes in a Kbyte)
---------------------------------------------------------------------------
Tony Hoover, Network Administrator 
KSU - Salina, College of Technology
mailto:hoover@sal.ksu.edu

"Don't Blend in..."
----------------------------------------------------------------------------


> ----------
> From: 	Natesa Sabapathy[SMTP:natesa@bellglobal.com]
> Reply To: 	axp-list@redhat.com
> Sent: 	Wednesday, May 31, 2000 8:24 AM
> To: 	axp-list@redhat.com
> Subject: 	Re: attempting to increase SHMMAX
> 
> Hi Wes,
> 
> How do you arrive at 131072000 for 128 MB ?
> 
> Thanks
> W Bauske wrote:
> 
> > Christina Clark wrote:
> > >
> > > Greetings,
> > >
> > > I am setting up an Oracle 8i Server on Intel RedHat 6.2 (kernel
> > > 2.2.14-5.0).
> > >
> > > I am very happy with the way the kernel is behaving and only want to
> > > increase SHMMAX from 32 megs to 128 megs (half my physical memory).
> > >
> >
> > There is a variable at /proc/sys/kernel/shmmax
> > that you can use to change the running kernel's shmmax value.
> > just use "echo 131072000 >  /proc/sys/kernel/shmmax" at the
> > command line or in your rc.local script at boot.
> >
> > Wes
> >
> > --
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: attempting to increase SHMMAX
  2000-05-31 13:33 attempting to increase SHMMAX Hoover, Tony
@ 2000-05-31 17:53 ` W Bauske
  0 siblings, 0 replies; 6+ messages in thread
From: W Bauske @ 2000-05-31 17:53 UTC (permalink / raw)
  To: axp-list

"Hoover, Tony" wrote:
> 
> actually that figure is 128 thousand kilobytes, which should be close
> enough. To figure the actual value for 128MB, take 128 * 1024 (kilobytes in
> a meg) * 1024 (bytes in a Kbyte)
> ---------------------------------------------------------------------------
> Tony Hoover, Network Administrator
> KSU - Salina, College of Technology
> mailto:hoover@sal.ksu.edu
> 
> "Don't Blend in..."
> ----------------------------------------------------------------------------
> 
> > ----------
> > From:         Natesa Sabapathy[SMTP:natesa@bellglobal.com]
> > Reply To:     axp-list@redhat.com
> > Sent:         Wednesday, May 31, 2000 8:24 AM
> > To:   axp-list@redhat.com
> > Subject:      Re: attempting to increase SHMMAX
> >
> > Hi Wes,
> >
> > How do you arrive at 131072000 for 128 MB ?
> >

As Tony said, I just put down a number close to what was
requested that I know from memory.

The real number is 128*1024*1024 if you really need a precise
limit on your shm limit. I gave  128*1024*1000.


Wes


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-05-31 16:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-31 13:33 attempting to increase SHMMAX Hoover, Tony
2000-05-31 17:53 ` W Bauske
  -- strict thread matches above, loose matches on Subject: below --
2000-05-30 14:11 Christina Clark
2000-05-30 14:25 ` Rich Payne
2000-05-30 19:37 ` W Bauske
2000-05-31 13:24   ` Natesa Sabapathy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox