Skip to contentSkip to conversation

Some general questions about Reiser4

DISCUSSION Jon Smirl 2 participants 3 messages Dec 11, 2002

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

After reading though all of the material on the web site and looking at the source code for a while, I do have to congratulate you on having one of the best documented programming projects I have seen. Here are still a few areas that I have questions about....

1) The doc talks about doing something like "ls file/attrib" to see an attribute that is implemented as a tiny file. Does this work on Reiser4? How do I access it? I tried this on my Reiser4 system and couldn't figure it out.

2) Looking at Reiser 4 as a database, would the path to the file be considered a primary key? Or is the primary key to the file system an unique ID and the path looks up the unique ID? Could I create an alternative index into the file system based on say creation date or permissions?

3) Has special consideration been made for parallelism on SMP systems? For example, common hot spots on databases are disk allocation, logging, and unique id generation. These can be implemented so that each processor gets it own independent copy and never has to lock against the other CPUs.

4) Since Reiser4 is already SMP capable, how far is it from being clusterable over a SAN? Having GFS go closed source has left an opening for a new alternative.

=====
Jon Smirl
[email protected]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

#1 lore raw
Quoted 6 lines · Jon Smirl

After reading though all of the material on the web site and looking at the source code for a while, I do have to congratulate you on having one of the best documented programming projects I have seen. Here are still a few areas that I have questions about....

Quoted 6 lines

1) The doc talks about doing something like "ls file/attrib" to see an attribute that is implemented as a tiny file. Does this work on Reiser4? How do I access it? I tried this on my Reiser4 system and couldn't figure it out.

Not yet implemented, but the infrastructure is getting there. We (somewhat) adhere to the define the minimum functionality needed to ship, make it work, ship, then do the rest development model.

Quoted 4 lines

2) Looking at Reiser 4 as a database, would the path to the file be considered a primary key?

The name within the directory would be considered the primary key in the semantic layer.

Quoted 6 lines

Or is the
primary key to the file system an unique ID and the path looks up the unique ID? Could I create an alternative index into the file system based on say creation date or permissions?

The "key" is considered the primary/only key in the storage layer.

Quoted 8 lines

3) Has special consideration been made for parallelism on SMP systems? For example, common hot spots on databases are disk allocation, logging, and unique id generation. These can be implemented so that each processor gets it own independent copy and never has to lock against the other CPUs.

How do I put it. Reiser4 scales perfectly in its design;-), and there will be a long period of running benchmarks and finding bottlenecks we failed to consider.

Quoted 4 lines

4) Since Reiser4 is already SMP capable, how far is it from being clusterable over a SAN?

About $850,000 far away.;-) I say this without having done a real study of it. We have sold licenses to reiser3 to proprietary clustering fs vendors. They spend orders of magnitude more than that, but I am far lower in my costs than they are (no silicon valley office, etc.)

Quoted 4 lines

Having GFS go
closed source has left an opening for a new alternative.

Encourage your local government to give us a grant, and we'll do it.;-) I am a bit more interested in globally distributed than SAN, but I am flexible. Everybody is doing clusters, so I would prefer to go globally distributed and make them the smaller niche market. NFS doesn't scale globally, etc., etc.

Quoted 14 lines

=====
Jon Smirl
[email protected]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Best,

Hans

author
#2 lore raw

It would be difficult to implement alternative indexes on the file system if the path is the only key into the file system. A directory rename in the middle of the path would ruin a large part of the secondary index.

I'm with you on SAN vs global. Identifying files by unique id also has a big advantage in a globally distributed file system by allowing easy replication.

One project I have been looking in to is to making a Goolge like interface to the local file system. In other words provide a set a query terms to the file system and get back a list of files that match. To do this efficiently you need to be able to construct stable, alternative indices.

I've never been a fan of always looking at my file system via a single view based on path name.

=====
Jon Smirl
[email protected]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com