From: Henry Bausley <hbausley@domain.hid>
To: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: [Xenomai-help] pthread_setschedparam: Resource temporarily unavailable
Date: Thu, 13 Aug 2009 11:02:21 -0700 [thread overview]
Message-ID: <1250186541.23699.8.camel@domain.hid> (raw)
[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]
We are using 2.6.28.8 and xenomai 2.4.7 on a AMCC PowerPC 460EX platform
and getting
the following message.
Xenomai Posix skin init: pthread_setschedparam: Resource temporarily
unavailable
It takes quite a while for this to happen. The /proc/xenomai/heap value
for used keeps increasing.
Once the "used" gets very close to "size" the user space xenomai
applications can no longer run.
I have isolated the problem to opening and closing shared memory areas.
shmfd = shm_open(RTL_SHM_NAME, O_CREAT | O_RDWR, 0777);
if (shmfd == -1) {
printf("Gp Share mem Open, Err: %d Msg: (%s)\n", errno,
strerror(errno));
return -1;
}
ftruncate(shmfd,MAKE_PAGESIZE(sizeof(struct SHM)));
pshm = mmap(NULL,MAKE_PAGESIZE(sizeof(struct SHM)),PROT_READ |
PROT_WRITE,MAP_SHARED, shmfd,0);
munmap(pshm, MAKE_PAGESIZE(sizeof(struct SHM)));
close(shmfd);
shm_unlink(RTL_SHM_NAME);
The above calls are in a shared library that an applications call.
**********************************************************
Outbound scan for Spam or Virus by Barracuda at Delta Tau
**********************************************************
[-- Attachment #2: Type: text/html, Size: 1394 bytes --]
next reply other threads:[~2009-08-13 18:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-13 18:02 Henry Bausley [this message]
2009-08-13 18:33 ` [Xenomai-help] pthread_setschedparam: Resource temporarily unavailable Gilles Chanteperdrix
2009-08-16 23:07 ` Henry Bausley
[not found] ` <1250200537.28789.8.camel@domain.hid>
[not found] ` <4A8808BA.4080504@domain.hid>
2009-08-17 21:17 ` Henry Bausley
2009-08-17 22:12 ` Gilles Chanteperdrix
2009-08-17 22:47 ` Gilles Chanteperdrix
2009-08-18 15:29 ` Henry Bausley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1250186541.23699.8.camel@domain.hid \
--to=hbausley@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.