Re: [uClinux-dev] Reclaiming Memory

2007-11-02 Thread Harry Gunnarsson
Thanks Jamie, very useful information. I see that on 2.6.22 kernels there is also the SLUB allocator. I have tried it on my systems at times, but I have inexplicably seen some BUG statements on the console, which has always made me switch back to SLAB. Thanks again, Harry On 11/2/07, Jamie Lokier

Re: [uClinux-dev] Reclaiming Memory

2007-11-02 Thread Jamie Lokier
Harry Gunnarsson wrote: > > I thought that this was the point of the SLAB allocator, i.e. > > avoiding fragmentations with fixed size pre-allocated blocks. > > Well, I'm not entirely certain how the SLAB allocator operates, > since I haven't really looked at its code at all. Bu

Re: [uClinux-dev] re-mount root filesystem

2007-11-02 Thread Jamie Lokier
advan wrote: > I have one embedded device(mips R4000) with Kernel-2.4.25, it boots >with a root filesystem in JFFS2 format (/dev/mtdblock1), I would like >to switch the root filesystem to another in a RAMDISK with an ext2 >filesystem, but I can't umount the JFFS2 root file

Re: [uClinux-dev] Reclaiming Memory

2007-11-02 Thread Jamie Lokier
Harry Gunnarsson wrote: >Hm, you are saying one thing that gets me thinking. I assumed, perhaps >incorrectly, that the 'chunks' of memory in the power-of-two scheme >were pre-allocated at kernel start. That is, n * 128k, m * 256k, y * >512k etc And I thought that the big c

[uClinux-dev] Memory Failure EDK 9.2 MicroBlaze

2007-11-02 Thread Mei Xu
Hi, I'm developing a uClinux system running on MicroBlaze 7.00 on Spartan3E 1600 Dev Board using the new EDK 9.2. I have a couple of question to ask about. First, does petaLinux support PLB? The MicroBlaze 7.00 supports PLB, but the main memory can only choose from OPB types. I downloaded p

[uClinux-dev] kernel crashs with scheduler run queue corrupted when doing malloc

2007-11-02 Thread Bin Liu
Hi, I am running linux-2.4.17 on coldfire-5272 custom board, the tool chain is m68k-elf-tools-20030314 downloaded from http://www.uclinux.org/ports/coldfire/source.html. with uClibc 0.9.19. since I was getting node crashs when allocating memory, I made a very simple test program as below: #define

Re: [uClinux-dev] re-mount root filesystem

2007-11-02 Thread Harry Gunnarsson
Earlier, I ran jffs2 root file system, which was per default mounted rw, and I wanted it ro and 'noatime' set. SInce I couldn't make uClinux set it per default, I came up with this; re-mounting '/' in the 'rc' script mount -t jffs2 -o remount,noatime,ro /dev/rom1 / So in your case, you could try

Re: [uClinux-dev] Reclaiming Memory

2007-11-02 Thread Harry Gunnarsson
I see, assuming that the algorithm works as you lay out, for embedded usage I would have preferred the fixed allocation scheme I first expected from SLAB. And it would have been even better if one could select the number of chunks of each size and fine tune it to its system (like OSE RTOS...) Well,

[uClinux-dev] re-mount root filesystem

2007-11-02 Thread advan
hi,everyone I have one embedded device(mips R4000) with Kernel-2.4.25, it boots with a root filesystem in JFFS2 format (/dev/mtdblock1), I would like to switch the root filesystem to another in a RAMDISK with an ext2 filesystem, but I can't umount the JFFS2 root filesystem (device is busy). I