Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 2 [3] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: odd frugal behaviour..., one has /bin of /KNOPPIX the other /ram< Next Oldest | Next Newest >
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Mar. 02 2006,17:43 QUOTE

The problem, as I understand it, is the creation of the ramdisk file system.

I think there is some internal calculation that gives you "X" number of INodes for every "Y" MB of ramdisk space.

This calculation is not ideal for our needs because the symlinks eat up a lot of INodes even though they don't take up much disk space.  I think that calculation was a rule-of-thumb for people who store real files inside the disk, and not a situation where there is a whole lotta symlinking goin' on.

I guess the ideal situation would be to figure out how to manipulate this number and then tweak the linuxrc or other boot script so that it creates more INodes per MB of ramdisk.

But first, we need to understand the ramdisk creation process and the commandline switches that are available to us before the next level of understanding, how to do a "fix", is achieved.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 02 2006,19:29 QUOTE

The number of inodes is controlled via the initial mke2fs command. Either based on number blocks or a pre-calculated fixed number.
If one was building an image for a specific targeted hardware/software configuration then one could adjust these figues to be most accomodating. When I first built appliances, I used several ramdisks each with varying inode formulas but these applicances ran trageted  applications so the inode forumla could be fine tuned. DSL is a general pupose micro desktop capable of expanding to quite a large size. Not sure the effort would show results.
Back to top
Profile PM WEB 
_pathos Offline





Group: Members
Posts: 91
Joined: Aug. 2005
Posted: Mar. 03 2006,11:16 QUOTE

Surely just the usual calculation + the constant number of INodes needed for the symbollic links should be acceptable?

So theoretically I could find the right file in /etc , modify it and remaster the image?

Thanks for the feedback btw its exceptional.
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Mar. 05 2006,07:01 QUOTE

From the informatin below,

http://www.linuxdevcenter.com/linux/cmd/cmd.csp?path=m/mke2fs

http://www.die.net/doc/linux/man/man8/mke2fs.8.html

it appears that there are two ways to tackle the problem during the initial creation of the /ramdisk filesystem.

1) Use the -i switch to change the bytes-per-inode ratio to something better than 4096 bytes for every inode

2) Use the normal inode ratio for most of the time, EXCEPT when ramdisk size < X  (where "X" is the magic number where you don't have enough indodes by default). When ramdisk size < X , then either tweak the ratio downward OR set a fixed number of inodes using the -N switch.

I like #2 better because it does not change the behavior (inode ratio) for all users, just the specific ones that need the extra inodes.

You should be able to remaster the change wherever the /ramdisk filesystem is created, either inside the minirt24.gz (linuxrc), or later on in one of the init scripts.

If it is inside the minirt24.gz initial ramdisk, you can make your change without the need for a full blown compressed iso remastering.
Back to top
Profile PM 
_pathos Offline





Group: Members
Posts: 91
Joined: Aug. 2005
Posted: Mar. 06 2006,10:22 QUOTE

thanks. I'll give that a go.
Back to top
Profile PM 
14 replies since Feb. 27 2006,03:40 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 2 [3] >/
reply to topic new topic new poll
Quick Reply: odd frugal behaviour...

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code