免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1743 | 回复: 9
打印 上一主题 下一主题

我的.cramfs为什么运行很慢 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-09 10:31 |只看该作者 |倒序浏览
我的操作系统是linux2.6.13,现在加cramfs文件系统,运行的用户程序是基于microwindows,可是画面切换非常慢,不知道问题出在什么地方,请教是内核的问题,还是文件系统制作的问题,或者是应用程序的问题呢......

论坛徽章:
0
2 [报告]
发表于 2006-09-11 09:38 |只看该作者
up up  真的很着急啊

论坛徽章:
0
3 [报告]
发表于 2006-09-11 11:23 |只看该作者
直观的感觉是文件系统的问题.不知道你为什么要在你机子中使用这个文件系统,它本身就是用时间换取空间,一般用在嵌入式设备中.因为在这些设备中,内存和flash资源比较紧张,所以才用他,在普通的PC中用它做甚?

论坛徽章:
0
4 [报告]
发表于 2006-09-11 12:17 |只看该作者
我做的就是嵌入式的啊,是基于2410的开发板...
现在在开发板上运行我的应用程序都非常慢,特别是画面大点,如果上面有位图的话基本要延迟1到2秒才能刷新出来...
原来我用2.4内核的时候都还行,这个项目要求用2.6的,可是反映确实慢,我自己都看不过去,经理天天在后面催....郁闷啊!

论坛徽章:
0
5 [报告]
发表于 2006-09-12 09:32 |只看该作者
哪位有里面有图形程序的2.6内核能用的.cramfs文件能不能给小弟串一个呢
microwin qtembed minigui 都行

论坛徽章:
0
6 [报告]
发表于 2006-09-12 13:09 |只看该作者
你先用ramdisk的文件试下看看速度会不会提升

论坛徽章:
0
7 [报告]
发表于 2006-09-12 14:42 |只看该作者
当初就是因为ramdisk做不了才加cramfs的,我原来在2.4下的ramdisk在2.6下用不成.
      请问还有什么别的办法吗???
      首先不是我程序的问题,因为我加别人编译好的程序也慢

论坛徽章:
0
8 [报告]
发表于 2006-09-12 23:16 |只看该作者
我原来在2.4下的ramdisk在2.6下用不成

为什么不成?我的为什么成。

你的实验环境是什么样的,你说出来呀,你不说出来谁想帮你分析问题也没有办法呀。

论坛徽章:
0
9 [报告]
发表于 2006-09-13 08:58 |只看该作者
我用的是s3c2410的开发板,移植2.6.13的内核,我用的编译环境是cygwin,交叉编译3.3.2...
    你的2.4的ramdisk和2.6的ramdisk可以通用???

论坛徽章:
0
10 [报告]
发表于 2006-09-13 09:15 |只看该作者
这是我加ramdisk的启动信息:
Starting kernel ...


Uncompressing Linux...................................................................... done, booting the kernel.
[21474536.480000] ************test**************

[21474536.480000] Linux version 2.6.13 (Admin@WinXP-SP2) (gcc version 2.95.4 20010319 (prerelease)) #164 Mon Jul 17 11:13:35 2006

[21474536.480000] CPU: ARM920T [41129200] revision 0 (ARMv4T)

[21474536.480000] Machine: SMDK2410

[21474536.480000] Warning: bad configuration page, trying to continue

[21474536.480000] Memory policy: ECC disabled, Data cache buffered

[21474536.480000] CPU S3C2410A (id 0x32410002)

[21474536.480000] S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

[21474536.480000] S3C2410 Clocks, (c) 2004 Simtec Electronics

[21474536.480000] CPU0: D VIVT write-back cache

[21474536.480000] CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets

[21474536.480000] CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets

[21474536.480000] Built 1 zonelists

[21474536.480000] Kernel command line: initrd=0x30800000,0x440000 mem=64M root=/dev/ram init=/linuxrc console=ttySAC0,115200

[21474536.480000] irq: clearing pending ext status 00000200

[21474536.480000] irq: clearing subpending status 00000002

[21474536.480000] PID hash table entries: 512 (order: 9, 8192 bytes)

[21474536.480000] timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8

[21474536.480000] Console: colour dummy device 80x30

[21474536.490000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

[21474536.525000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

[21474536.665000] Memory: 64MB = 64MB total

[21474536.670000] Memory: 58240KB available (1640K code, 498K data, 92K init)

[21474536.780000] Mount-cache hash table entries: 512

[21474536.800000] CPU: Testing write buffer coherency: ok

[21474536.830000] checking if image is initramfs...

[21474615.635000]

[21474615.635000] **populate_rootfs has been called**

[21474615.635000]

[21474615.645000] it isn't (no cpio magic); looks like an initrd

[21474615.650000]

[21474615.650000]

[21474615.650000]

[21474615.650000] *******0*******

[21474615.650000]

[21474615.650000]

[21474615.660000]

[21474615.660000]

[21474615.660000] ******is image-initrd******

[21474615.660000]

[21474616.290000] Freeing initrd memory: 4352K

[21474616.315000] Linux NoNET1.0 for Linux 2.6

[21474616.320000] S3C2410: Initialising architecture

[21474616.415000] SCSI subsystem initialized

[21474616.425000] usbcore: registered new driver usbfs

[21474616.430000] usbcore: registered new driver hub

[21474616.485000] NetWinder Floating Point Emulator V0.97 (double precision)

[21474616.570000] devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)

[21474616.580000] devfs: boot_options: 0x1

[21474616.585000] JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.

[21474619.585000] s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410

[21474619.595000] s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410

[21474619.610000] s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410

[21474619.625000] io scheduler noop registered

[21474619.630000] io scheduler anticipatory registered

[21474619.695000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize

[21474619.730000] loop: loaded (max 8 devices)

[21474619.735000] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2

[21474619.745000] ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx

[21474619.795000] Probing YL-9200 Application Flash at physical address 0x10000000 (16-bit buswidth)

[21474619.825000] S3C24XX NAND Driver, (c) 2004 Simtec Electronics

[21474619.840000] s3c2410-nand: mapped registers at c4880000

[21474619.850000] s3c2410-nand: timing: Tacls 40ns, Twrph0 80ns, Twrph1 80ns

[21474619.855000] NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)

[21474619.865000] Scanning device for bad blocks

[21474621.145000] usbmon: debugfs is not available

[21474621.155000] s3c2410-ohci s3c2410-ohci: S3C24XX OHCI

[21474621.170000] s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1

[21474621.180000] s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000

[21474621.255000] hub 1-0:1.0: USB hub found

[21474621.255000] hub 1-0:1.0: 2 ports detected

[21474621.270000] Initializing USB Mass Storage driver...

[21474621.280000] usbcore: registered new driver usb-storage

[21474621.285000] USB Mass Storage support registered.

[21474621.290000] usbcore: registered new driver usbhid

[21474621.300000] drivers/usb/input/hid-core.c: v2.01:USB HID core driver

[21474621.315000] dummy_hcd dummy_hcd: USB Host+Gadget Emulator, driver 02 May 2005

[21474621.320000] dummy_hcd dummy_hcd: Dummy host controller

[21474621.330000] dummy_hcd dummy_hcd: new USB bus registered, assigned bus number 2

[21474621.345000] hub 2-0:1.0: USB hub found

[21474621.350000] hub 2-0:1.0: 1 port detected

[21474621.370000] mice: PS/2 mouse device common for all mice

[21474621.375000] i2c /dev entries driver

[21474621.395000]

[21474621.395000]

[21474621.395000] ***********prepare_namespace has been called***************

[21474621.395000]

[21474621.440000]

[21474621.440000]

[21474621.440000] *******initrd_load has been called********

[21474621.440000]

[21474621.515000]

[21474621.515000]

[21474621.515000] *****rd_load_image has been called******

[21474621.515000]

[21474621.525000]

[21474621.525000]

[21474621.525000] ^^^^^<1> nblocks = -1071526248^^^^^

[21474621.525000]

[21474621.535000]

[21474621.535000]

[21474621.535000] ****rd_image_start = 0*****

[21474621.535000]

[21474621.540000] RAMDISK: Compressed image found at block 0

[21474621.545000]

[21474621.545000]

[21474621.545000] ^^^^^<2> nblocks = 0^^^^^

[21474621.545000]

[21474697.690000] VFS: Mounted root (ext2 filesystem) readonly.

[21474697.710000] Mounted devfs on /dev

[21474697.715000] Freeing init memory: 92K

Initializing random number generator... done.

到这里应该进入控制台,可是他不动了,弄了好久没有解决...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP