这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » [求助]vxWorks的问题的failed to create

共6条 1/1 1 跳转至

[求助]vxWorks的问题的failed to create

菜鸟
2007-05-19 03:54:04     打赏
我在做数据采集,采集过程中出现如下错误,系统是从硬盘启动的,
“WARNING: Failed to create 131072 bytes of disk cache
ATA disk /ata0 configured without cache”
然后就死机了,现在老板急着要,大家给出点点子!!先谢谢了
我查了一下,主要是这个函数出了问题,

***usrAta.c****

cbio = dcacheDevCreate( (void *) pBlkDev, NULL, ATA_CACHE_SIZE, devNames );
if( cbio == NULL )
{
/* insufficient memory, will avoid the cache */
printErr ("WARNING: Failed to create %d bytes of disk cache"
" ATA disk %s configured without cache\n",
ATA_CACHE_SIZE, devNames);
cbio = cbioDevVerify( (void *) pBlkDev, FALSE );
}
其中
ATA_CACHE_SIZE=(128*1024)
[align=right][color=#000066][此贴子已经被作者于2007-5-18 19:56:19编辑过][/color][/align]



关键词: 求助     vxWorks     题的     failed     crea    

菜鸟
2007-05-22 05:06:00     打赏
2楼

请问楼主这种故障现象是不是运行过程中出现的,也就是说启动后一段时间内是好的,但过一段时间就出现这一故障?还是一启动就有这个问题?

如果是中途出现这个问题,可能是内存碎片方面的问题。

如果是一开始就有这个问题,则很有可能是BSP的ATA配置还有问题。


菜鸟
2007-05-22 17:13:00     打赏
3楼
以下是引用yaopg在2007-5-21 21:06:00的发言:

请问楼主这种故障现象是不是运行过程中出现的,也就是说启动后一段时间内是好的,但过一段时间就出现这一故障?还是一启动就有这个问题?

如果是中途出现这个问题,可能是内存碎片方面的问题。

如果是一开始就有这个问题,则很有可能是BSP的ATA配置还有问题。

终于有人帮忙了,启动后出现的,只要我运行程序,就出现这种问题,如果是内存碎片,该如何配置,我动态开了5个数组,每个数组是4k,以前没有问题,不知道为什么现在老是有问题


菜鸟
2007-05-22 17:39:00     打赏
4楼
估计是内存满了,然后创建磁盘缓冲CBIO时候出现无法创建的问题,这个问题何解?请斑竹和各位赐教

菜鸟
2007-05-22 21:20:00     打赏
5楼

Disk Cache, ?
Cached Block I/O Device, handle=0x1f6d082c
Description: Disk Cache - LRU
Disk size 1440 Kbytes, RAM Size 131072 bytes
Block size 512, heads 2, blocks/track 18, # of blocks 2880
partition offset 0 blocks, type Removable, Media changed No
Total cache Blocks 181, 0 blocks (%0) dirty
Tunable Params:
Bypass Threshold 24, Max Dirty 128, Read Ahead 22 blocks, Sync interval 1 sec
Hit Stats: Cookie Hits 0 Miss 0, Hash size 269 Hits 0 Miss 0
LRU Hits 0, Misses 0, Hit Ratio %0
Write Sstats: Foreground 0, Background 0, Hidden 0, Forced 0

Subordinate Device Start:
Cached Block I/O Device, handle=0x1f6f08b8
Description: Block Device
Disk size 1440 Kbytes, RAM Size 0 bytes
Block size 512, heads 2, blocks/track 18, # of blocks 2880
partition offset 0 blocks, type Removable, Media changed No
Subordinate Device End:
Disk Cache, /ata0a:
Cached Block I/O Device, handle=0x1f6aec60
Description: Disk Cache - LRU
Disk size 37 Gbytes, RAM Size 131072 bytes
Block size 512, heads 16, blocks/track 63, # of blocks 78177792
partition offset 0 blocks, type Removable, Media changed No
Total cache Blocks 181, 0 blocks (%0) dirty
Tunable Params:
Bypass Threshold 24, Max Dirty 128, Read Ahead 22 blocks, Sync interval 1 sec
Hit Stats: Cookie Hits 0 Miss 0, Hash size 269 Hits 0 Miss 0
LRU Hits 0, Misses 0, Hit Ratio %0
Write Sstats: Foreground 0, Background 0, Hidden 0, Forced 0

Subordinate Device Start:
Cached Block I/O Device, handle=0x1f6cecec
Description: Block Device
Disk size 37 Gbytes, RAM Size 0 bytes
Block size 512, heads 16, blocks/track 63, # of blocks 78177792
partition offset 0 blocks, type Removable, Media changed No
Subordinate Device End:
Disk Cache, /ata1a:
Cached Block I/O Device, handle=0x1f68ce40
Description: Disk Cache - LRU
Disk size 115 Mbytes, RAM Size 131072 bytes
Block size 512, heads 8, blocks/track 39, # of blocks 237432
partition offset 0 blocks, type Removable, Media changed No
Total cache Blocks 181, 0 blocks (%0) dirty
Tunable Params:
Bypass Threshold 24, Max Dirty 128, Read Ahead 22 blocks, Sync interval 1 sec
Hit Stats: Cookie Hits 0 Miss 0, Hash size 269 Hits 0 Miss 0
LRU Hits 0, Misses 0, Hit Ratio %0
Write Sstats: Foreground 0, Background 0, Hidden 0, Forced 0

Subordinate Device Start:
Cached Block I/O Device, handle=0x1f6acecc
Description: Block Device
Disk size 115 Mbytes, RAM Size 0 bytes
Block size 512, heads 8, blocks/track 39, # of blocks 237432
partition offset 0 blocks, type Removable, Media changed No
Subordinate Device End:
value = 45 = 0x2d = '-'


菜鸟
2007-05-23 06:09:00     打赏
6楼

“只要你一运行程序”就出错,那时候内存应该还有的。可以在运行前或者运行中添加memShow不断检查内存使用情况,看到底消耗情况如何。

另外,检查一下是不是因为采集数据的产生速度太快的原因,放慢或者减少采集数据的频率和量,看情况是否有所改善或者故障消失。

啊,谈不上帮忙啊,共同探讨下吧。


共6条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]