Regarding enabling SMP with Xenomai
Dear All,
I have been trying to install Xenomai on my Dual Core
Intel Machine. This CPU has 2 cores, so i wanted to enable the SMP flag in the kernel configuration.
I started with downloading kernel ver 2.6.25.11 from kernel.org, and got adeos patch as well as xenomai-2.4.7 downloaded. I used the prepare-kernel script for patching.
When i go to the make menuconfig. The real time subsystem section gives a meassage that either the HPET_TIMER must be turned off or X68_LOCAL_APIC must be turned off.
After a lot of trials, i failed to find the options for turning of the X86_LOCAL_APIC flag.
Then i went on to fiddle and do some trials.
I tried with subarchitecture type PC compatible, and the Processor type to be Core2 or newer. The xenomai gets installed, but the latency i get is really high. I am getting a maximum latency of around 30 us and even this is not constant. it varies a lot.
After some googling i found that i must have the SMI workaround. I enabled that and recompiled my kernel. But could not get good latencies still.
Now please guide me as to how can i have the SMP enabled. I want that the OS must use both the Cores of my CPU.
Please also suggest if there is some documentation i can read to achieve lower latencies.
Thanks in Advance
Shashank
-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India
Quoted 8 lines · Shashank Bhatia
Dear All,
I have been trying to install Xenomai on my Dual Core
Intel Machine. This CPU has 2 cores, so i wanted to enable the SMP flag in the kernel configuration.I started with downloading kernel ver 2.6.25.11 from kernel.org, and got adeos patch as well as xenomai-2.4.7 downloaded. I used the prepare-kernel script for patching.
These are outdated versions. Especially on x86, especially with SMP configuration. So, please use the latest stable release of Xenomai (xenomai-2.4.8), using the I-pipe patches it proposes. And we also would be interested if you could test of the release candidate which has just been released.
Quoted 7 lines
When i go to the make menuconfig. The real time subsystem section gives a meassage that either the
HPET_TIMERmust be turned off orX68_LOCAL_APICmust be turned off.After a lot of trials, i failed to find the options for turning of the
X86_LOCAL_APICflag.
That is because SMP mode needs local APIC, so, if you want to disable local APIC, you need to disable SMP. But I think you misunderstood the message, the message is: "NOTE: Xenomai needs either X86_LOCAL_APIC enabled or HPET_TIMER disabled.", so what you should do is disable HPET_TIMER.
Quoted 5 lines
Then i went on to fiddle and do some trials.
I tried with subarchitecture type PC compatible, and the Processor type to be Core2 or newer. The xenomai gets installed, but the latency i get
You should always choose the processor which you really have, this is in the FAQ too.
Quoted 2 lines
is really high. I am getting a maximum latency of around 30 us and even this is not constant. it varies a lot.
30us is a bit high, but not that high. An SMI induced latency is something larger than, say, 80us. You should try more recent releases to see if you get better results.
Quoted 4 lines
After some googling i found that i must have the SMI workaround. I enabled that and recompiled my kernel. But could not get good latencies still.
Why using Google? Xenomai documentation is available on Xenomai site. The SMI option is described in an FAQ. And also in the TROUBLESHOOTING option which comes with Xenomai sources.
Signature · 1 line
Gilles.
Thanks a lot Gilles,
I used the Xenomai 2.4.8 version with a newer kernel 2.6.28.9 to be precise.
Initially the kernel compilation gave error of NR_CPU flag, i lowered the no of CPUs to 16 and it worked.
Now the xenomai is able to see two CPUs, the output of /proc/xenomai/sched is :
CPU PID PRI PERIOD TIMEOUT TIMEBASE STAT NAME 0 0 -1 0 0 master R ROOT/0 1 0 -1 0 0 master R ROOT/1
The output of dmesg |grep is
[ 4.353912] I-pipe: Domain Xenomai registered. [ 4.353949] Xenomai: hal/i386 started. [ 4.354530] Xenomai: real-time nucleus v2.4.8 (Lords Of Karma) loaded. [ 4.354612] Xenomai: SMI-enabled chipset found [ 4.354623] Xenomai: SMI workaround enabled [ 4.354647] Xenomai: starting native API services. [ 4.354650] Xenomai: starting POSIX services. [ 4.354693] Xenomai: starting RTDM services.
Thanks for your help..
Now i am facing just a small issue, i think the pipes for klatency tests are not created, thats why when i run the klatency test, i get the error as:
[email protected]# ./run * * * Type ^C to stop this application. * * open(/proc/xenomai/registry/native/pipes/klat_pipe): No such file or directory modprobe klat_mod or try the -P option?
Please tell me if i am doing something wrong.
Thanks again!
Regards,
Shashank
Quoted 1 line · Gilles Chanteperdrix
Gilles
-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India
Quoted 4 lines · Shashank Bhatia
Thanks a lot Gilles,
I used the Xenomai 2.4.8 version with a newer kernel 2.6.28.9 to be precise.
You are still posting to the wrong list. I will not answer, since otherwise you will continue ignoring me when I tell you that you are posting to the wrong list.
The mail address with which you registered to the Xenomai mailing list causes bounces. So, please use another address (gmail, yahoo, even hotmail, whatever you want, but not a server which bounces the xenomai mails). See the attached bounce.
Also note that posting a mail to a public mailing list with a disclaimer saying that the mail is not public is stupid, since you are posting to a public mailing list in the first place.
Signature · 1 line
Gilles
***************************************
** IQuinox Alert
** System Generated Message
** Do Not Reply To This
***************************************
---- Message not delivered - User(s) Unknown ----
User <[email protected]> Unknown
User < > Unknown
User <admin> Unknown
---- Original message replaced by message headers ----
Return-Path: <[email protected]>
Received: from bart.gna.org [78.40.121.81] by d1.cyberspace.in with SMTP; Mon, 22 Jun 2009 15:30:51 +0530
Received: from localhost ([127.0.0.1] helo=bart.gna.org) by gna.org with esmtp (Exim 4.63) (envelope-from <[email protected]>) id 1MIgKG-0005Md-SK; Mon, 22 Jun 2009 12:00:32 +0200
From: [email protected]
Subject: Xenomai-core Digest, Vol 45, Issue 12
To: [email protected]
Reply-To: [email protected]
Date: Mon, 22 Jun 2009 12:00:29 +0200
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-BeenThere: [email protected]
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Xenomai life and development <xenomai.xenomai.org>
List-Unsubscribe: <https://mail.gna.org/listinfo/xenomai-core>, <mailto:[email protected]>
List-Archive: </public/xenomai-core>
List-Post: <mailto:[email protected]>
List-Help: <mailto:[email protected]>
List-Subscribe: <https://mail.gna.org/listinfo/xenomai-core>, <mailto:[email protected]>
Sender: [email protected]
Errors-To: [email protected]
X-Declude-Sender: [email protected] [78.40.121.81]
X-Declude-Spoolname: 51909567.eml
X-Declude-RefID:
X-Declude-Note: Scanned by DS24 Declude 4.6.35 for spam. "http://www.declude.com/x-note.htm"
X-Declude-Scan: Incoming Score DS24 [-6] at 15:31:25 on 22 Jun 2009
X-Declude-Fail: JWRH [1], FROMNOMATCH [2], HAM_INDICATOR [-6]
X-Country-Chain: FRANCE->destination
X-Declude-ds24-recipients: [email protected]
X-Declude-Code: f
X-Declude-Recipcount: 1
X-Rcpt-To: <[email protected]>
The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of Hi-Tech Gears Group and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. Unless stated otherwise, the text (including attachment(s)) may not be construed as professional advice. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Hi-Tech Gears Group.
This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and Hi-Tech Gears Group is not responsible for any loss or damage arising in any way from its use.
The sender confirms that Hi-Tech Gears Limited (HGL) shall not be responsible if this email message is used for any indecent, unsolicited or illegal purposes, which are in violation of any existing laws and the same shall solely be the responsibility of the sender and that HGL shall at all times be indemnified of any civil and/ or criminal liabilities or consequences thereof.
-------------------------------------
Hi-Tech Gears Limited, Gurgaon, India