Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Kernel param. for maximum size of single file in memory?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Consul
n00b
n00b
Posts: 31
Joined: Sat May 03, 2003 6:12 pm
Location: Port Huron, Michigan, USA

Kernel param. for maximum size of single file in memory?

  • Quote

Post by Consul » Fri Feb 10, 2006 7:37 pm

You know, I had the answer to this once upon a time, and now I can't find it anywhere.

We're running a MySQL cluster (version 5.0.18), and we're trying to convert some of our machines over to Gentoo from Slackware. At this point, we are trying to replace one of our cluster nodes with a Gentoo machine, and we're running into a configuration problem.

MySQL has to have the maximum file size ceiling (for a file in memory, not on the disk) set to a high enough number to hold all of the databases we store in it. On the three other machines, that's 768MB. Now, the MySQL config file itself (for NDB) has a setting for this, but it can't exceed what the kernel has set for it (ie, it's a soft-limit within the program itself).

I know there is a kernel parameter somewhere that adjusts this, and I even knew its name once, but I'll be darned if nearly two hours of Google searching on just about every permutation I can think of turned up nothing. (I did find something called SHMMAX, which is the max. size of a shared memory segment. I'm pretty sure that's not what I need, although we may need to increase that as well.) Any chance anyone here can steer me in the right direction?

I hope I described this problem clearly enough. Thank you all for your help.
Mother, please, is it just a disease that has them breaking all of my laws?
Check if you can disconnect the effect, and I'll go after the cause.
-- Moribund the Burgermeister
Top
anonybosh
Guru
Guru
Posts: 324
Joined: Sun Nov 20, 2005 1:45 am

  • Quote

Post by anonybosh » Sat Feb 11, 2006 2:12 am

Could it have something to do with the /etc/limits file (just a guess)?

Code: Select all

$ man limits

       The  limits  file  (/etc/limits  by default or LIMITS_FILE defined con- 
       fig.h) describes the resource limits you wish to impose. It  should  be 
       owned by root and readable by root account only. 

       By default no quotas are imposed on 'root'. In fact, there is no way to 
       impose limits via this procedure to root-equiv accounts (accounts  with 
       UID 0). 

       Each line describes a limit for a user in the form: 

       user LIMITS_STRING 

       The  LIMITS_STRING  is a string of a concatenated list of resource lim- 
       its.  Each limit consists of a letter identifier followed by a  numeri- 
       cal limit. 

       The valid identifiers are: 

       A: max address space (KB) 
       C: max core file size (KB) 
       D: max data size (KB) 
       F: maximum filesize (KB) 
   --->M: max locked-in-memory address space (KB) 
       N: max number of open files 
       R: max resident set size (KB) 
       S: max stack size (KB) 
       T: max CPU time (MIN) 
       U: max number of processes 
       K: file creation mask, set by umask(2). 
       L: max number of logins for this user 
       P: process priority, set by setpriority(2).
Top
ctford0
l33t
l33t
User avatar
Posts: 774
Joined: Fri Oct 25, 2002 4:09 pm
Location: Lexington, KY,USA

  • Quote

Post by ctford0 » Sat Feb 11, 2006 5:04 am

i'm not sure what you mean... are you talking about how much memory a single process can use? i personally have used upwards of 3-4 gigs of memory (physical/swap combo) with no problems at all for one process. with no special settings

chris
Top
Consul
n00b
n00b
Posts: 31
Joined: Sat May 03, 2003 6:12 pm
Location: Port Huron, Michigan, USA

  • Quote

Post by Consul » Tue Feb 14, 2006 7:58 pm

Yeah, to tell you the truth, I'm not sure what I need myself anymore. I just remember reading once that there was a kernel setting that needed to be adjusted (it required a recompile of the kernel) that may solve this MySQL Cluster problem we're having. We actually looked at the limits file, and couldn't get anything to work.

Argh, it's just been so frustrating, you know? :wink:

I'm going to go ahead and take this subject to the appropriate for MySQL stuff, with a lot more detail. Thank you all for your help.
Mother, please, is it just a disease that has them breaking all of my laws?
Check if you can disconnect the effect, and I'll go after the cause.
-- Moribund the Burgermeister
Top
Post Reply

4 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic