* [Xenomai] fcse best-effort mode has limitations in memory map
@ 2013-07-26 12:13 Roberto Bielli
2013-08-04 12:20 ` Gilles Chanteperdrix
2013-08-04 13:07 ` Gilles Chanteperdrix
0 siblings, 2 replies; 4+ messages in thread
From: Roberto Bielli @ 2013-07-26 12:13 UTC (permalink / raw)
To: xenomai
Hi,
i try to map a memory address fixed on 0x79000000 with mmap.
if i don't enable FCSE with best effort the mmap give me the desire
wanted address,
otherwise seems only an adress minor than 32MB.
But i understand that fcse with best effort cannot has limitations.
Xenomai 2.6.2.1 on kernel 3.4.6, tx28 karo ( freescale imx28 ) ARM.
Best Regards
--
+------------------------------------------------------------------------------------------------+
Roberto Bielli
Sviluppo Software
Axel S.r.l.
Via Del Cannino, 3
21020 Crosio Della Valle
Varese - Italy
Telefono: +39 0332 949600
Fax: +39 0332 969315
E-mail: roberto.bielli@axelsw.it
Web Site: www.axelsw.it
+------------------------------------------------------------------------------------------------+
Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario.
Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi,
dandocene gentilmente comunicazione. Grazie.
Informativa sul trattamento dei dati personali (D. Lgs. 196/2003).
I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento,
per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi.
Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: info@axelsw.it
This e-mail and any attachments is confidential and may contain privileged information
intended for the addressee(s) only. Dissemination, copying, printing or use by anybody
else is unauthorised. If you are not the intended recipient,
please delete this message and any attachments and advise the sender
by return e-mail.Thank you.
+------------------------------------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] fcse best-effort mode has limitations in memory map
2013-07-26 12:13 [Xenomai] fcse best-effort mode has limitations in memory map Roberto Bielli
@ 2013-08-04 12:20 ` Gilles Chanteperdrix
2013-08-04 13:07 ` Gilles Chanteperdrix
1 sibling, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2013-08-04 12:20 UTC (permalink / raw)
To: Roberto Bielli; +Cc: Xenomai
On 07/26/2013 02:13 PM, Roberto Bielli wrote:
> Hi,
>
> i try to map a memory address fixed on 0x79000000 with mmap.
> if i don't enable FCSE with best effort the mmap give me the desire
> wanted address,
> otherwise seems only an adress minor than 32MB.
>
> But i understand that fcse with best effort cannot has limitations.
>
> Xenomai 2.6.2.1 on kernel 3.4.6, tx28 karo ( freescale imx28 ) ARM.
Hi,
sorry for not seeing this message earlier, yes, this is a limitation in
the fcse patch modifications made to the mmap method. Note however that
if the process for which you create this mapping is a real-time process,
cache will be flushed every time the context is switched to this
process. So, in short, you will get little benefit from the FCSE patch.
The best effort support for processes with address spaces larger than
32MB is made for other uses cases:
- several processes with address-space larger than 32MB, but which are
not activated often, so most of the time cache will not have to be flushed;
- only one process with an address-space larger than 32MB, and less than
95 processes total, so that all processes can cohabit without any cache
flushes.
Your case could apply to the second case, but since the address
0x79000000 is very high, you will not be able to create many more
processes, for efficiency reason the FCSE patch supposes that your
process needs the whole space between 0 and the end of the 0x79000000
mapping, so, you could only create around 33 more processes with PIDs
above 0x7b000000 allowing to run your system without cache flushes.
That being said, I will try and remove this limitation, thanks for
bringing this to the list attention.
Regards.
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] fcse best-effort mode has limitations in memory map
2013-07-26 12:13 [Xenomai] fcse best-effort mode has limitations in memory map Roberto Bielli
2013-08-04 12:20 ` Gilles Chanteperdrix
@ 2013-08-04 13:07 ` Gilles Chanteperdrix
2013-08-05 10:26 ` Roberto Bielli
1 sibling, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2013-08-04 13:07 UTC (permalink / raw)
To: Roberto Bielli; +Cc: xenomai
On 07/26/2013 02:13 PM, Roberto Bielli wrote:
> Hi,
>
> i try to map a memory address fixed on 0x79000000 with mmap.
> if i don't enable FCSE with best effort the mmap give me the desire
> wanted address,
> otherwise seems only an adress minor than 32MB.
>
> But i understand that fcse with best effort cannot has limitations.
>
> Xenomai 2.6.2.1 on kernel 3.4.6, tx28 karo ( freescale imx28 ) ARM.
Well, actually it works here, maybe you forgot to pass the "MAP_FIXED"
flag? If you do not pass this flag, the address is taken as a "hint",
and mmap has no obligation to use it.
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] fcse best-effort mode has limitations in memory map
2013-08-04 13:07 ` Gilles Chanteperdrix
@ 2013-08-05 10:26 ` Roberto Bielli
0 siblings, 0 replies; 4+ messages in thread
From: Roberto Bielli @ 2013-08-05 10:26 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
That's right.
i didn't pass MAP_FIXED but always mmap without FCSE gave me the same
address.
FCSE with best effort works also with memory larger than 32MB.
Il 04/08/2013 15:07, Gilles Chanteperdrix ha scritto:
> On 07/26/2013 02:13 PM, Roberto Bielli wrote:
>
>> Hi,
>>
>> i try to map a memory address fixed on 0x79000000 with mmap.
>> if i don't enable FCSE with best effort the mmap give me the desire
>> wanted address,
>> otherwise seems only an adress minor than 32MB.
>>
>> But i understand that fcse with best effort cannot has limitations.
>>
>> Xenomai 2.6.2.1 on kernel 3.4.6, tx28 karo ( freescale imx28 ) ARM.
>
>
> Well, actually it works here, maybe you forgot to pass the "MAP_FIXED"
> flag? If you do not pass this flag, the address is taken as a "hint",
> and mmap has no obligation to use it.
>
--
+------------------------------------------------------------------------------------------------+
Roberto Bielli
Sviluppo Software
Axel S.r.l.
Via Del Cannino, 3
21020 Crosio Della Valle
Varese - Italy
Telefono: +39 0332 949600
Fax: +39 0332 969315
E-mail: roberto.bielli@axelsw.it
Web Site: www.axelsw.it
+------------------------------------------------------------------------------------------------+
Si precisa che le informazioni contenute in questo messaggio sono riservate e ad uso esclusivo del destinatario.
Qualora il messaggio in parola Le fosse pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi,
dandocene gentilmente comunicazione. Grazie.
Informativa sul trattamento dei dati personali (D. Lgs. 196/2003).
I dati utilizzati per la spedizione del presente messaggio sono utilizzati da Axel S.r.l., titolare del trattamento,
per l'invio delle comunicazioni dei diversi settori aziendali, non essendo autorizzata la divulgazione a terzi.
Potrete rivolgere alla seguente mail richieste di verifica, rettifica o cancellazione dei Vostri dati: info@axelsw.it
This e-mail and any attachments is confidential and may contain privileged information
intended for the addressee(s) only. Dissemination, copying, printing or use by anybody
else is unauthorised. If you are not the intended recipient,
please delete this message and any attachments and advise the sender
by return e-mail.Thank you.
+------------------------------------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-05 10:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-26 12:13 [Xenomai] fcse best-effort mode has limitations in memory map Roberto Bielli
2013-08-04 12:20 ` Gilles Chanteperdrix
2013-08-04 13:07 ` Gilles Chanteperdrix
2013-08-05 10:26 ` Roberto Bielli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.