Skip to contentSkip to conversation

Pramfs: Persistent and protected ram filesystem

PATCH Marco 2 participants 9 messages Jun 24, 2009 – Jul 9, 2009 1 message not in the archive VFS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Marco

author
#1 lore raw
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines · Pavel Machek
Quoted 7 lines · Tim Bird
Quoted 4 lines · Pavel Machek
Quoted 2 lines

block of fast non-volatile RAM that need to access data on it using a standard filesytem interface."

Turns a block of fast RAM into 13MB/sec disk. Hmm. I believe you are better with ext2.

Not if you want the RAM-based filesystem to persist over a kernel invocation.

Yes, you'll need to code Persistent, RAM-based _block_device_.

First of all I have to say that I'd like to update the site and make it clearer but at the moment it's not possible because I'm not the admin and I've already asked to the sourceforge support to have this possibility.

Quoted 6 lines
Quoted 3 lines

About the comments: sincerely I don't understand the comments. We have *already* a fs that takes care to remap a piace of ram (ram, sram, nvram, etc.), takes care of caching problems, takes care of write

Well, it looks pramfs design is confused. 13MB/sec shows that caching _is_ useful for pramfs. So...?

caching problems means to avoid filesystem corruption, so dirty pages in the page cache are not allowed to be written back to the backing-store RAM. It's clear that there is a performance penalty. This penalty should be reduced by the access speed of the RAM, however the performance are not important for this special fs as Tim Bird said, so this question is not relevant for me. If this issue is not clear enough on the web site, I hope I can update the information in the future.

Quoted 8 lines
Quoted 4 lines

You are talked about journaling. This schema works well for a disk, but what about a piece of ram? What about a crazy kernel that write in that area for a bug? Do you remember for example the e1000e bug? It's not

I believe you need both journaling *and* write protection. How do you handle power fault while writing data?
Pavel

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

Marco

author
#2 lore raw
Quoted 31 lines
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines · Pavel Machek
Quoted 7 lines · Tim Bird
Quoted 4 lines · Pavel Machek
Quoted 2 lines

block of fast non-volatile RAM that need to access data on it using a standard filesytem interface."

Turns a block of fast RAM into 13MB/sec disk. Hmm. I believe you are better with ext2.

Not if you want the RAM-based filesystem to persist over a kernel invocation.

Yes, you'll need to code Persistent, RAM-based _block_device_.

First of all I have to say that I'd like to update the site and make it clearer but at the moment it's not possible because I'm not the admin and I've already asked to the sourceforge support to have this possibility.

Quoted 5 lines
Quoted 3 lines

About the comments: sincerely I don't understand the comments. We have *already* a fs that takes care to remap a piace of ram (ram, sram, nvram, etc.), takes care of caching problems, takes care of write

Well, it looks pramfs design is confused. 13MB/sec shows that caching _is_ useful for pramfs. So...?

caching problems means to avoid filesystem corruption, so dirty pages in the page cache are not allowed to be written back to the backing-store RAM. It's clear that there is a performance penalty. This penalty should be reduced by the access speed of the RAM, however the performance are not important for this special fs as Tim Bird said, so this question is not relevant for me. If this issue is not clear enough on the web site, I hope I can update the information in the future.

Quoted 3 lines
Quoted 3 lines

You are talked about journaling. This schema works well for a disk, but what about a piece of ram? What about a crazy kernel that write in that area for a bug? Do you remember for example the e1000e bug? It's not

Quoted 9 lines
Quoted 3 lines

I believe you need both journaling *and* write protection. How do you handle power fault while writing data?
Pavel

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

Marco

Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM:

Version 1.03e ------Sequential Output------ --Sequential Input- --Random-

                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hostname     15M:1k 14156  99 128779 100 92240 100 11669 100 166242  99 80058  82
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                  4  2842  99 133506 104 45088 101  2787  99 79581 101 58212 102

These data are the proof of the importance of the environment, workload and so on when we talk about benchmark. Your consideration are really superficial.

Marco

#3 lore raw
Quoted 52 lines · Marco
Quoted 31 lines
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines · Pavel Machek
Quoted 7 lines · Tim Bird
Quoted 4 lines · Pavel Machek
Quoted 2 lines

block of fast non-volatile RAM that need to access data on it using a standard filesytem interface."

Turns a block of fast RAM into 13MB/sec disk. Hmm. I believe you are better with ext2.

Not if you want the RAM-based filesystem to persist over a kernel invocation.

Yes, you'll need to code Persistent, RAM-based _block_device_.

First of all I have to say that I'd like to update the site and make it clearer but at the moment it's not possible because I'm not the admin and I've already asked to the sourceforge support to have this possibility.

Quoted 5 lines
Quoted 3 lines

About the comments: sincerely I don't understand the comments. We have *already* a fs that takes care to remap a piace of ram (ram, sram, nvram, etc.), takes care of caching problems, takes care of write

Well, it looks pramfs design is confused. 13MB/sec shows that caching _is_ useful for pramfs. So...?

caching problems means to avoid filesystem corruption, so dirty pages in the page cache are not allowed to be written back to the backing-store RAM. It's clear that there is a performance penalty. This penalty should be reduced by the access speed of the RAM, however the performance are not important for this special fs as Tim Bird said, so this question is not relevant for me. If this issue is not clear enough on the web site, I hope I can update the information in the future.

Quoted 3 lines
Quoted 3 lines

You are talked about journaling. This schema works well for a disk, but what about a piece of ram? What about a crazy kernel that write in that area for a bug? Do you remember for example the e1000e bug? It's not

Quoted 9 lines
Quoted 3 lines

I believe you need both journaling *and* write protection. How do you handle power fault while writing data?
Pavel

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

Marco

Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM:

Version 1.03e ------Sequential Output------ --Sequential Input- --Random-

                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hostname     15M:1k 14156  99 128779 100 92240 100 11669 100 166242  99 80058  82
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                  4  2842  99 133506 104 45088 101  2787  99 79581 101 58212 102
Quoted 2 lines

These data are the proof of the importance of the environment, workload and so on when we talk about benchmark. Your consideration are really superficial.

Unfortunately, your numbers are meaningless.
Pavel

(PCs should have cca 3GB/sec RAM transfer rates; and you demosstrated cca 166MB/sec read rate; disk is 80MB/sec, so that's too slow. If you want to prove your filesystem the filesystem is reasonably fast, compare it with ext2 on ramdisk.)

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#4 lore raw

2009/6/24 Pavel Machek <[email protected]>:

Quoted 53 lines · Marco
Quoted 52 lines
Quoted 31 lines
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines · Pavel Machek
Quoted 7 lines · Tim Bird
Quoted 4 lines · Pavel Machek
Quoted 2 lines

block of fast non-volatile RAM that need to access data on it using a standard filesytem interface."

Turns a block of fast RAM into 13MB/sec disk. Hmm. I believe you are better with ext2.

Not if you want the RAM-based filesystem to persist over a kernel invocation.

Yes, you'll need to code Persistent, RAM-based _block_device_.

First of all I have to say that I'd like to update the site and make it clearer but at the moment it's not possible because I'm not the admin and I've already asked to the sourceforge support to have this possibility.

Quoted 5 lines
Quoted 3 lines

About the comments: sincerely I don't understand the comments. We have *already* a fs that takes care to remap a piace of ram (ram, sram, nvram, etc.), takes care of caching problems, takes care of write

Well, it looks pramfs design is confused. 13MB/sec shows that caching _is_ useful for pramfs. So...?

caching problems means to avoid filesystem corruption, so dirty pages in the page cache are not allowed to be written back to the backing-store RAM. It's clear that there is a performance penalty. This penalty should be reduced by the access speed of the RAM, however the performance are not important for this special fs as Tim Bird said, so this question is not relevant for me. If this issue is not clear enough on the web site, I hope I can update the information in the future.

Quoted 3 lines
Quoted 3 lines

You are talked about journaling. This schema works well for a disk, but what about a piece of ram? What about a crazy kernel that write in that area for a bug? Do you remember for example the e1000e bug? It's not

Quoted 9 lines
Quoted 3 lines

I believe you need both journaling *and* write protection. How do you handle power fault while writing data?
                                                           Pavel

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

Marco

Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM:

Version 1.03e       ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP hostname     15M:1k 14156  99 128779 100 92240 100 11669 100 166242  99 80058  82 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP 4  2842  99 133506 104 45088 101  2787  99 79581 101 58212 102

Quoted 4 lines
Quoted 2 lines

These data are the proof of the importance of the environment, workload and so on when we talk about benchmark. Your consideration are really superficial.

Unfortunately, your numbers are meaningless.

I don't think so.

Quoted 7 lines

                                                                       Pavel

(PCs should have cca 3GB/sec RAM transfer rates; and you demosstrated cca 166MB/sec read rate; disk is 80MB/sec, so that's too slow. If you want to prove your filesystem the filesystem is reasonably fast, compare it with ext2 on ramdisk.)

This is the point. I don't want compare it with ext2 from performance point of view. This comparison makes no sense for me. I've done this test to prove that if you change environment you can change in a purposeful way the results.

Marco
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 29 lines
Quoted 17 lines
Quoted 17 lines
Quoted 5 lines

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

Marco

Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM:

Version 1.03e       ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP hostname     15M:1k 14156  99 128779 100 92240 100 11669 100 166242  99 80058  82 ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP 4  2842  99 133506 104 45088 101  2787  99 79581 101 58212 102

Quoted 4 lines
Quoted 2 lines

These data are the proof of the importance of the environment, workload and so on when we talk about benchmark. Your consideration are really superficial.

Unfortunately, your numbers are meaningless.

I don't think so.

Quoted 5 lines

(PCs should have cca 3GB/sec RAM transfer rates; and you demosstrated cca 166MB/sec read rate; disk is 80MB/sec, so that's too slow. If you want to prove your filesystem the filesystem is reasonably fast, compare it with ext2 on ramdisk.)

Quoted 4 lines

This is the point. I don't want compare it with ext2 from performance point of view. This comparison makes no sense for me. I've done this test to prove that if you change environment you can change in a purposeful way the results.

Yes, IOW you demonstrated that the numbers are machine-dependend and really meaningless.

ext2 comparison would tell you how much pramfs sucks (or not).
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#6 lore raw
Quoted 31 lines · Pavel Machek
Quoted 26 lines
Quoted 16 lines
Quoted 16 lines
Quoted 5 lines

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

Marco

Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM:

Version 1.03e ------Sequential Output------ --Sequential Input- --Random-

                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hostname     15M:1k 14156  99 128779 100 92240 100 11669 100 166242  99 80058  82
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                  4  2842  99 133506 104 45088 101  2787  99 79581 101 58212 102
Quoted 3 lines
Quoted 2 lines

These data are the proof of the importance of the environment, workload and so on when we talk about benchmark. Your consideration are really superficial.

Unfortunately, your numbers are meaningless.

I don't think so.

Quoted 5 lines

(PCs should have cca 3GB/sec RAM transfer rates; and you demosstrated cca 166MB/sec read rate; disk is 80MB/sec, so that's too slow. If you want to prove your filesystem the filesystem is reasonably fast, compare it with ext2 on ramdisk.)

Quoted 4 lines

This is the point. I don't want compare it with ext2 from performance point of view. This comparison makes no sense for me. I've done this test to prove that if you change environment you can change in a purposeful way the results.

Quoted 5 lines

Yes, IOW you demonstrated that the numbers are machine-dependend and really meaningless.

ext2 comparison would tell you how much pramfs sucks (or not).
Pavel

If you knew that the results were machine-dependent I don't understand why you were so upset by my previous benchmark.

Marco

#7 lore raw
In reply to Pavel Machek
Quoted 31 lines · Pavel Machek
Quoted 26 lines
Quoted 16 lines
Quoted 16 lines
Quoted 5 lines

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

Marco

Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM:

Version 1.03e ------Sequential Output------ --Sequential Input- --Random-

                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hostname     15M:1k 14156  99 128779 100 92240 100 11669 100 166242  99 80058  82
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                  4  2842  99 133506 104 45088 101  2787  99 79581 101 58212 102
Quoted 3 lines
Quoted 2 lines

These data are the proof of the importance of the environment, workload and so on when we talk about benchmark. Your consideration are really superficial.

Unfortunately, your numbers are meaningless.

I don't think so.

Quoted 5 lines

(PCs should have cca 3GB/sec RAM transfer rates; and you demosstrated cca 166MB/sec read rate; disk is 80MB/sec, so that's too slow. If you want to prove your filesystem the filesystem is reasonably fast, compare it with ext2 on ramdisk.)

Quoted 4 lines

This is the point. I don't want compare it with ext2 from performance point of view. This comparison makes no sense for me. I've done this test to prove that if you change environment you can change in a purposeful way the results.

Quoted 5 lines

Yes, IOW you demonstrated that the numbers are machine-dependend and really meaningless.

ext2 comparison would tell you how much pramfs sucks (or not).
Pavel

Here the test with ext2 (same environment):

Version 1.03e ------Sequential Output------ --Sequential Input- --Random-

                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hostname     15M:1k 10262  83 40847  82 38574  82  9866  92 62252  98 25204  81
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                  1 19859  98 44804  61 68830 100 13566  99 157129 100 30431  98

Marco

#8 lore raw
Quoted 39 lines · Marco Stornelli
Quoted 31 lines · Pavel Machek
Quoted 26 lines
Quoted 16 lines
Quoted 16 lines
Quoted 5 lines

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

Marco

Just for your information I tried the same test with pc in a virtual machine with 32MB of RAM:

Version 1.03e ------Sequential Output------ --Sequential Input- --Random-

                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hostname     15M:1k 14156  99 128779 100 92240 100 11669 100 166242  99 80058  82
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                  4  2842  99 133506 104 45088 101  2787  99 79581 101 58212 102
Quoted 3 lines
Quoted 2 lines

These data are the proof of the importance of the environment, workload and so on when we talk about benchmark. Your consideration are really superficial.

Unfortunately, your numbers are meaningless.

I don't think so.

Quoted 5 lines

(PCs should have cca 3GB/sec RAM transfer rates; and you demosstrated cca 166MB/sec read rate; disk is 80MB/sec, so that's too slow. If you want to prove your filesystem the filesystem is reasonably fast, compare it with ext2 on ramdisk.)

Quoted 4 lines

This is the point. I don't want compare it with ext2 from performance point of view. This comparison makes no sense for me. I've done this test to prove that if you change environment you can change in a purposeful way the results.

Quoted 4 lines

Yes, IOW you demonstrated that the numbers are machine-dependend and really meaningless.

ext2 comparison would tell you how much pramfs sucks (or not).

Here the test with ext2 (same environment):

Quoted 9 lines

Version 1.03e ------Sequential Output------ --Sequential Input- --Random-

                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine   Size:chnk K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
hostname     15M:1k 10262  83 40847  82 38574  82  9866  92 62252  98 25204  81
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                  1 19859  98 44804  61 68830 100 13566  99 157129 100 30431  98

Ok, so pramfs is significantly faster than ext2. Interesting, and good for pramfs.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#9 lore raw
In reply to Marco
Quoted 21 lines · Marco
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines · Pavel Machek
Quoted 7 lines · Tim Bird
Quoted 4 lines · Pavel Machek
Quoted 2 lines

block of fast non-volatile RAM that need to access data on it using a standard filesytem interface."

Turns a block of fast RAM into 13MB/sec disk. Hmm. I believe you are better with ext2.

Not if you want the RAM-based filesystem to persist over a kernel invocation.

Yes, you'll need to code Persistent, RAM-based _block_device_.

First of all I have to say that I'd like to update the site and make it clearer but at the moment it's not possible because I'm not the admin and I've already asked to the sourceforge support to have this possibility.

Quoted 6 lines
Quoted 3 lines

About the comments: sincerely I don't understand the comments. We have *already* a fs that takes care to remap a piace of ram (ram, sram, nvram, etc.), takes care of caching problems, takes care of write

Well, it looks pramfs design is confused. 13MB/sec shows that caching _is_ useful for pramfs. So...?

Quoted 7 lines

caching problems means to avoid filesystem corruption, so dirty pages in the page cache are not allowed to be written back to the backing-store RAM. It's clear that there is a performance penalty. This penalty should be reduced by the access speed of the RAM, however the performance are not important for this special fs as Tim Bird said, so this question is not relevant for me. If this issue is not clear enough on the web site, I hope I can update the information in the future.

Yes, please update the pages...

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines

You are talked about journaling. This schema works well for a disk, but what about a piece of ram? What about a crazy kernel that write in that area for a bug? Do you remember for example the e1000e bug? It's not

I believe you need both journaling *and* write protection. How do you handle power fault while writing data?

Ah now the write protection is a "needed feature", in your previous comment you talked about why not use ext2/3.......

write protection should be handled at block device layer, not filesystem layer. So yes, use ext2.

You still did not explain how you avoid the need for journalling...
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html