Calibration tool error
Umar Qureshey
uq at ecs.fullerton.edu
Sun Oct 31 11:59:59 CET 2004
Recompiled with heap size of 65536 bytes but same exact error occurs.
Here's the memory situation on the system:
/# cat /proc/meminfo
MemTotal: 21792 kB
MemFree: 6020 kB
Buffers: 456 kB
Cached: 9528 kB
SwapCached: 0 kB
Active: 7548 kB
Inactive: 4332 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 21792 kB
LowFree: 6020 kB
SwapTotal: 147160 kB
SwapFree: 147160 kB
Dirty: 12 kB
Writeback: 0 kB
Mapped: 3904 kB
Slab: 3424 kB
Committed_AS: 3760 kB
PageTables: 192 kB
VmallocTotal: 1015784 kB
VmallocUsed: 84 kB
VmallocChunk: 1015700 kB
Looks plentiful but looks can be deceiving. Any insight into this?
Regards,
Umar
On Sat, 30 Oct 2004, Umar Qureshey wrote:
> Hi,
>
> Ok, did a search on the archives and saw someone else with the same
> problem (~March 2004). Borrowing a hint, I ran the calibration test with
> rtai-load --verbose. Here's the contents of /var/log/kern.log:
>
> ###################################################
> Adeos: Domain RTAI registered.
> RTAI[hal]: 3.1 mounted over Adeos 2.6r7/x86.
> RTAI[hal]: compiled with gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk).
> insmod: page allocation failure. order:5, mode:0xd0
> [<c0133924>] __alloc_pages+0x344/0x350
> [<c013394f>] __get_free_pages+0x1f/0x40
> [<c013765e>] kmem_getpages+0x1e/0xd0
> [<c0138335>] cache_grow+0xa5/0x320
> [<c01387d1>] cache_alloc_refill+0x221/0x250
> [<c0138e0c>] __kmalloc+0x7c/0x90
> [<c2039858>] alloc_extent+0x18/0x40 [rtai_up]
> [<c2039a2c>] rtheap_init+0x13c/0x180 [rtai_up]
> [<c2039fcb>] __rtai_heap_init+0x1b/0x60 [rtai_up]
> [<c2036799>] __rtai_up_init+0x9/0x2c0 [rtai_up]
> [<c012cd6e>] sys_init_module+0x10e/0x2f0
> [<c01042f4>] syscall_call+0x7/0x14
>
> RTAI[malloc]: failed to initialize the global heap (size=131072 bytes).
> calibrate_rt: Unknown symbol nano2count
> calibrate_rt: Unknown symbol rt_get_time
> calibrate_rt: Unknown symbol rt_task_make_periodic
> calibrate_rt: Unknown symbol start_rt_timer
> calibrate_rt: Unknown symbol rt_task_delete
> calibrate_rt: Unknown symbol rt_task_suspend
> calibrate_rt: Unknown symbol rtf_put
> calibrate_rt: Unknown symbol stop_rt_timer
> calibrate_rt: Unknown symbol rtf_destroy
> calibrate_rt: Unknown symbol rt_set_oneshot_mode
> calibrate_rt: Unknown symbol rtf_create
> calibrate_rt: Unknown symbol count2nano
> calibrate_rt: Unknown symbol rt_task_init_cpuid
> calibrate_rt: Unknown symbol rt_task_wait_period
> Adeos: Domain RTAI unregistered.
> RTAI[hal]: unmounted.
> ################################################
>
>
> And here's the corresponding stderr + stdout:
>
> ################################################
> Running calibrate from /usr/realtime/calibration/.runinfo
> *
> *
> * Type ^C to stop this application.
> *
> *
> + /sbin/insmod /usr/realtime/modules/rtai_hal.ko
> + /sbin/insmod /usr/realtime/modules/rtai_up.ko
> insmod: error inserting '/usr/realtime/modules/rtai_up.ko': -1 Cannot
> allocate memory
> ERROR: cannot load /usr/realtime/modules/rtai_up.ko
> + spawning command (./calibrate -i)
> Error opening /dev/rtf/0
> + /sbin/rmmod rtai_hal
> ################################################
>
> Looks like running out of memory possibly. Should I decrease heap size in
> RTAI config? To what size would be reasonable? I have 24MB RAM. Any
> help appreciated.
>
> Regards,
>
> Umar
[snip]
More information about the Rtai
mailing list