Forum OpenACS Q&A: HowTo on raising shared memory

Collapse
Posted by David Kuczek on
I hope that I am not the only one interested in raising shared memory for postgres. How about expanding the Tips on Postgres by Don with more specific information on

a.) how to increase shared memory within a Kernel > 2.4.x
b.) how to do a kernel recompile on linux with a Kernel < 2.4.x

On a.) Petru and Todd gave some valueable (insight), but it might be completed somehow.

For beginners it is little things like the one from Guido van Driel that told me to check on the current status of shared memory with the command "ipcs"

Maybe the Tips by Don can be integrated an enhanced with Roberto's Simple Installation Guide. That's where it is supposed to be sitting I believe.

I know that raising shared memory is only interesting for higher scaling sites, but its those sites that spread the word.

Thanks
Collapse
Posted by David Kuczek on
It is somehow impossible to set the link to Todd's and Petru's thread...

Well, one more try:

link
Collapse
Posted by Don Baccus on
Yes, this information should be in our installation guide and my "Tips" stuff should be integrated as well.

Are you interested in volunteering, by any chance?

I've got to warn folks that I served for 15 years on the board of directors of one of Oregon's largest grassroots - i.e. volunteer-driven - conservation organizations.  I've got a *lot* of experience twisting folks' arms to get work out of them.  "Are you interested in volunteering" is one of my favorite phrases!

Collapse
Posted by David Kuczek on
Of course I would volunteer, but the problem is that I don't know how to do it myself.

Currently I am probably the most busy question asker around 😊

If you could give me some hints, I would try it on our 7.0 RH box, but of course I couldn't guarantee for anything. (So this would be the < 2.4.x Kernel recompile thing.)

Do you know by chance when RH will release a version with the 2.4.x integrated?

Some background to my computing skills:
In my real life I study Business Administration and got into contact with a programming language other than HTML 😊 in July 2000, when we started to mess around with openacs. The depth of skills concerning Linux is even worse.
I got to know about acs through a Siemens project called ShareNet, where I worked for as an intern in 1999.

Do you still want me to write it?

Collapse
Posted by Todd Gillespie on
I could write it up this weekend.  (Provided of course that I find a new fsck-ing apartment (in San Francisco, natch!))  I suppose I'm volunteering since my name is already in the thread, and like blood->water->sharks, well anyway..
Collapse
Posted by Don Baccus on
OK ... sounds like Todd's up for it, cool.  This is good timing, contact Roberto about getting this done and part of the upcoming 3.2.5  release.  Cool!

David - writing documentation often requires a lot more writing than technical skill.  Depends on the subject matter, but a lot of installation stuff is just a matter of learning a bunch of magic incantations and once learnt, anyone can do them.  But since Todd's volunteered (sucker!) let's let him do it.

Do you want to help by taking his completed doc and trying it out on your 2.2 kernel-based RH  release?

Collapse
Posted by David Kuczek on
Of course I will test and then try to improve the already written doc.

I believe that my perspective might be valueable for some people, because I would see things that might be too common or easy for Todd.

When I grow up I will write my own docs Don. I promise!!!
Collapse
Posted by David Kuczek on
Hello Todd,

here is the shark 😉

Do you have a first draft of your HowTo on the kernel recompile that I could check out with our system or are you still looking for an appartment in SF?

Collapse
Posted by Jon Griffin on
I wrote a kernel and security doc a while ago (it is a little raggedy, but certainly usable) for RedHat as well as Oracle. All of the optimizations and security stuff should be relevant.

Feel free to look at it. I will write an update when 2.4.x is stable enough to use, right now it is not ready for production (but almost).

It will include journalling and other goodies. Stay tuned.

The other one is : jongriffin.com/static

Collapse
Posted by Roberto Mello on
Jon,

I am curious as to why do you think 2.4 is not ready for production use... I've been using it for months (since pre-release) with excellent results.

The only bad thing I hit was that up to 2.4.1 (I think) there was a bug on the VIA IDE chipset driver (some 38c something).

Collapse
Posted by Jon Griffin on
Roberto, Mainly the filesystem had some showstopper bugs. Luckily you weren't bitten but I would be very diligent about keeping up with any patches to the FS and etc.

Other than that 2.4.3 looks pretty good with the latest patches and I am going to install that tonight w/ Oracle and ReiserFS and pound on it.

Collapse
Posted by David Kuczek on
Jon,

do you have any insight in the file-storage showstoppers within the new RedHat 7.1 Release??

Thanks
Collapse
Posted by Jon Griffin on
David,

I am not sure what file-storage you are referring to! ACS file-storage or the problem that RH had with the Promise IDE bus?

As far as I know (I haven't downloaded 7.1) the promise bug was fixed. The other file system problems were taken care of in the kernel and the ReiserFS guys seem to think that all is stable (and I trust their judgement). I couldn't find a mirror that had an ISO image to download and try last night.

Also, Mandrake 8 is coming out any day now, although 7.2 was probably one of the worst releases I have ever seen, there is some hope for 8.0.

After living with RH and Mandrake for some time now, I tend to prefer RH's approach. I did convince Mandrake to get rid of that security flaw they call Zope, but they still insist on a 4 CD installation with CUPS and MySQL and other crap that I just have to spend 2-3 hours removing.

Collapse
Posted by Jon Griffin on
One other big problem (in my book) is RH's lack of support for ReiserFS. Even though this is officially in the kernel they insist it is unstable.

Well I can say that I am running it on all my boxes and some are getting 40-50,000 hits/day and yesterday my init went crazy and process 1 died (never seen that before). I did a cold boot and reiser came right up. No hassle, no Oracle complaints, no problems.

That said the 2.4.x kernels still have bugs in the VM (volume mangager) and other FS related things.(I am running 2.2.x kernels in production)

DO NOT RUN A 2.4.x KERNEL IN PRODUCTION YET. The 2.4.4-pre kernel fixed another set of bugs in the VFS layer that could cause corruptions, and knfsd is still a problem (but for those who insist on nfs, this will eventually be great as it supports v3 of NFS).

Collapse
Posted by C. R. Oldham on
Well I can say that I am running it on all my boxes and some are getting 40-50,000 hits/day and yesterday my init went crazy and process 1 died (never seen that before). I did a cold boot and reiser came right up. No hassle, no Oracle complaints, no problems.

Jon,

Your post above seems to indicate that you are running Oracle on kernel 2.4. Is that the case? We have been contemplating this but didn't know if it was fraught with danger.

Even though we have a support contract with Oracle we are running Debian on our servers, not one of the "supported" distributions.

It appears that 2.4 would be huge win for Oracle, esp. on an SMP box with lots of RAM.

Collapse
Posted by Jon Griffin on
C.R., Sorry for the confusion. I am NOT running 2.4 on any production sites and Oracle is on a 2.2.18 kernel that has been significantly patched.

I am going to update to a 2.2.19 kernel this weekend and will update the docs on my web site to show what I did.

Again, Please don't use a 2.4 kernel on a production box. It is not quite ready for prime time.

Collapse
Posted by Louis Gabriel on
Jon,

You mentioned you would update your website with info.

What's the URL?

Thanks!

Louis

Collapse
Posted by S. Y. on
jongriffin.com maybe?
Collapse
Posted by Jon Griffin on
I still don't have a RH 7.1 distro to use. All the mirrors are full. If it is not for sale at a local store, it may be a while.

You can look on jongriffin.com/static for some older docs.

Collapse
Posted by David Kuczek on
Roberto,

I have just read some stuff about DocBook. It sounds like the best way to do a doc.

What do you use to create a DocBook? A simple editor like emacs or vim?

Is there any kind of editor that I can use to create DocBooks online?

Thanks

Collapse
Posted by Pascal Scheffers on
You can find more on the DocBook things in this thread. You need to fetch the ldp.dsl and install it the right way. The direct URL for the LDP howto: http://www.linuxdoc.org/LDP/LDP-Author-Guide/usingldpdsssl.html.

To edit them docs I suggest you use Emacs, it will make life not just a whole lot easier, but goes from impossible to very doable. There are a couple of Emacs keybindings that will save the day:

  • C-c <: insert a tag, with context sensitive auto completions [press tab or enter]: If a tag is not allowed according to the DTD, emacs won't insert it.
  • C-c /: closes the last open tag.
  • There are more, for a full set of (SGML) keybindings: C-h b
Another neat thing is the document validation checker (in one of the menus, don't know the keybinding). Remember to use the extension .sgml, otherwise Emacs will not figure out you're doing sgml, AFAIK.

If you get the latest acs3-pg from CVS, you'll find a readme in acs3-pg/www/doc/openacs/src explaining howto create the HTMLs from the SGML. Have fun.

Collapse
Posted by Tom Mizukami on
aD has a useful article on the use of DocBook.
Collapse
Posted by Andrew Piskorski on
FYI, I have never used DocBook (so far), but if you want to name your files .xml or something instead of .sgml, you should be able to use something like the below to tell emacs to still use SGML mode for those files. This example binds .adp files to html-mode:

;; Set additional editing modes. 
(setq auto-mode-alist
      (append '(
                (".adp$"  . html-mode)
                ;; insert other modes here 
                ) auto-mode-alist))

Btw, I am no emacs-lisp expert so the above may not be the best way to do it. But it seems to work.