Solved

How do I know if the -rmap VM is enabled in the kernel?

Posted on 2004-04-13
3
568 Views
Last Modified: 2010-04-22
Is there any way to find out if the -rmap VM feature is enabled in the kernel?  My Makefile needs to know.
0
Comment
Question by:GSIJoe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10822525
sound like some configurable kernel memory feature ... goto /usr/src/linux

run "make xconfig" ... Now check if it is already selected ... If yes, then in all probabilities you have it enabled unless you meddled with the config file
0
 

Author Comment

by:GSIJoe
ID: 10823725
Hi Sunny,

I should have been more specific.  The situation is that some distributions, notably Red Hat, ship with this feature enabled in the kernel, and my program needs to know about this when it is compiled.  Currently, if someone compiles my program with this VM enabled and tries to run it, he is out of luck ... to fix he has to open an editor, monkey with a couple lines of code, and recompile.  I would really like to automate this process as much as possible so that make or ideally gcc can figure out if this feature is enabled and make the appropriate changes with an #ifdef or something.
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 125 total points
ID: 10842611
If enabling this feature provide you some command or API, you can try running that command and check the return value ... If you can elaborate a bit on this feature I can try to find out the details ...

Also if this feature appears in kernel configuration options in make xconfig, then there will be a corresponding variable in arch/<your arch>/config.in file and a corresponding header C file (I cant recollect the name!!)... the names are pretty descriptive so you will have no difficulty in detecting the variable ...

If it is configurable option let me know and I will try to search the name of the header file too !!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question