?
Solved

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

Posted on 2004-04-13
3
Medium Priority
?
585 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 500 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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

764 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