Solved

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

Posted on 2004-04-13
3
574 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

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

728 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