All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Henry Bausley" <hbausley@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] ENXIO error with large shared memory
Date: Thu, 13 Aug 2009 15:12:47 -0800	[thread overview]
Message-ID: <035001ca1c6b$92879d40$0109220a@domain.hid> (raw)
In-Reply-To: 49BFEA33.5090803@domain.hid

This problems was due to the limits of vmalloc.  To increase
the limit required changing the PAGE_OFFSET

The virtual address space used by vmalloc() is in the
range of VMALLOC_START and VMALLOC_END. If
CONFIG_HIGMEM is defined while building the kernel (it
will be, if the machine has more than 1GB memory), and
the PAGE_OFFSET is the default value of 0xc0000000,
this range is approximately 0xf8000000 to 0xfe000000.
This is about 96MB.
from ->  http://mail.nl.linux.org/kernelnewbies/2001-12/msg00004.html


then changed the advanced kernel settings

#
# Advanced setup
#
CONFIG_ADVANCED_OPTIONS=y
# CONFIG_LOWMEM_SIZE_BOOL is not set
CONFIG_LOWMEM_SIZE=0x30000000
CONFIG_PAGE_OFFSET_BOOL=y
CONFIG_PAGE_OFFSET=0x80000000
CONFIG_KERNEL_START_BOOL=y
CONFIG_KERNEL_START=0x80000000
CONFIG_PHYSICAL_START=0x00000000
CONFIG_TASK_SIZE_BOOL=y
CONFIG_TASK_SIZE=0x80000000
# CONFIG_CONSISTENT_START_BOOL is not set
CONFIG_CONSISTENT_START=0xff100000


from

#
# Advanced setup
#
# CONFIG_ADVANCED_OPTIONS is not set

#
# Default settings for advanced configuration options are used
#
CONFIG_LOWMEM_SIZE=0x30000000
CONFIG_PAGE_OFFSET=0xc0000000
CONFIG_KERNEL_START=0xc0000000
CONFIG_PHYSICAL_START=0x00000000
CONFIG_TASK_SIZE=0xc0000000
CONFIG_CONSISTENT_START=0xff100000
CONFIG_CONSISTENT_SIZE=0x00200000
CONFIG_NET=y



----- Original Message ----- 
From: "Gilles Chanteperdrix" <gilles.chanteperdrix@xenomai.org>
To: "Henry Bausley" <hbausley@domain.hid>
Cc: <xenomai@xenomai.org>
Sent: Tuesday, March 17, 2009 10:21 AM
Subject: Re: [Xenomai-help] ENXIO error with large shared memory


> Henry Bausley wrote:
>> The patch makes it work for 32M.  However if I try to go larger ie.48M or
>> 64M I get the following
>
> Do you get the same error if you only run a simple program that does
> such a big allocation ?
>
> In other words, is it the big allocation by itself which causes this
> "badness" or the accumulation of allocations (and possible memory
> corruption).
>
> You should be aware that the vmalloc space also has limits. Why do you
> need to share such big areas between kernel and user-space ?
>
> -- 
>                                                 Gilles. 




**********************************************************
Outbound scan for Spam or Virus by Barracuda at Delta Tau
**********************************************************


  reply	other threads:[~2009-08-13 23:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 22:08 [Xenomai-help] ENXIO error with large shared memory Henry Bausley
2009-03-16 21:31 ` Gilles Chanteperdrix
2009-03-17  0:49 ` Henry Bausley
2009-03-17 15:18   ` Gilles Chanteperdrix
2009-03-17 16:08     ` Gilles Chanteperdrix
2009-03-17 19:16       ` Henry Bausley
2009-03-17 18:21         ` Gilles Chanteperdrix
2009-08-13 23:12           ` Henry Bausley [this message]
2009-03-17 18:23         ` Gilles Chanteperdrix

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='035001ca1c6b$92879d40$0109220a@domain.hid' \
    --to=hbausley@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.