Skip to contentSkip to conversation

POHMELFS high performance network filesystem. Cache coherency, transactions, parallels.

PATCH Evgeniy Polyakov 2 participants 13 messages May 25, 2008 – May 26, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi.

I'm pleased to announce POHMEL high performance network filesystem. POHMELFS stands for Parallel Optimized Host Message Exchange Layered File System.

Development status can be tracked in filesystem section [1].

This is a high performance network filesystem with local coherent cache of data and metadata. Its main goal is distributed parallel processing of data.

This release brings following features:
* Full transaction support for all operations (object creation/removal, data reading and writing). Data reading transactions are not optimal yet and will be improved in the next release (although fast).
* Data and metadata cache coherency support. More details on how this is implemented one can find in appropriate section [5].
* Transaction timeout based resending. If given transaction did not receive reply after specified timeout, transaction will be resent (possibly to different server).
* Switched writepage path to ->sendpage() which improved performance and robustness of the writing.
* Preliminary support for parallel data processing. Code to write data to multiple servers in parallel and balance reading between them was imported, but is not used right now.
* Fair number of bugfixes.

Basic POHMELFS features:
* Local coherent (notes [2]) cache for data and metadata.
* Completely async processing of all events (hard and symlinks are the only exceptions) including object creation and data reading/writing.
* Flexible object architecture optimized for network processing. Ability to create long pathes to object and remove arbitrary huge directoris in single network command.
* High performance is one of the main design goals.
* Very fast and scalable multithreaded userspace server. Being in userspace it works with any underlying filesystem and still is much faster than async ni-kernel NFS one.
* Client is able to switch between different servers (if one goes down, client automatically reconnects to second and so on).
* Transactions support. Full failover for all operations. Resending transactions to different servers on timeout or error.

Roadmap includes:
* Server redundancy extensions (ability to store data in multiple locations

	according to regexp rules, like '*.txt' in /root1 and '*.jpg' in /root1
	and /root2.

* Strong authentification and possible data encryption in network channel.
* Async writing of the data from receiving kernel thread into userspace pages via copy_to_user() (check development tracking blog for results).
* Client parallel extensions: ability to write to multiple servers and balance reading between them. Code was imported to the current version, but not enabled yet.
* Client dynamical server reconfiguration: ability to add/remove servers from working set by server command and from userspace.
* Start generic server distribution development.

One can grab sources from archive or git [2] or check homepage [3].

The nearest roadmap (next release is scheduled for the start of the month) includes:
* Improved reading transactions.
* Server redundancy extensions (ability to store data in multiple locations according to regext rules, like '*.txt' in /root1 and '*.jpg' in /root1 and /root2.
* Client parallel extensions: ability to write to multiple servers and balance reading between them. Code was imported to the current version, but not enabled yet.
* Client dynamical server reconfiguration: ability to add/remove servers from working set by server command and from userspace.

Thank you.

1. POHMELFS development status.
http://tservice.net.ru/~s0mbre/blog/devel/fs/index.html

2. Source archive.
http://tservice.net.ru/~s0mbre/archive/pohmelfs/
Git tree.
http://tservice.net.ru/~s0mbre/archive/pohmelfs/pohmelfs.git/

3. POHMELFS homepage.
http://tservice.net.ru/~s0mbre/old/?section=projects&item=pohmelfs

4. POHMELFS vs NFS benchmark [iozone results are coming].
http://tservice.net.ru/~s0mbre/blog/devel/fs/2008_04_18.html
http://tservice.net.ru/~s0mbre/blog/devel/fs/2008_04_14.html
http://tservice.net.ru/~s0mbre/blog/devel/fs/2008_05_12.html

5. Cache-coherency notes.
http://tservice.net.ru/~s0mbre/blog/devel/fs/2008_05_17.html

 fs/Kconfig               |    2 +
 fs/Makefile              |    1 +
 fs/pohmelfs/Kconfig      |   25 +
 fs/pohmelfs/Makefile     |    3 +
 fs/pohmelfs/config.c     |  148 ++++
 fs/pohmelfs/dir.c        |  961 ++++++++++++++++++++++++
 fs/pohmelfs/inode.c      | 1819 ++++++++++++++++++++++++++++++++++++++++++++++
 fs/pohmelfs/net.c        |  978 +++++++++++++++++++++++++
 fs/pohmelfs/netfs.h      |  496 +++++++++++++
 fs/pohmelfs/path_entry.c |  296 ++++++++
 fs/pohmelfs/trans.c      |  609 ++++++++++++++++
 11 files changed, 5338 insertions(+), 0 deletions(-)
fs/Kconfig +2 -0
index c509123..59935cd 100644
@@ -1566,6 +1566,8 @@ menuconfig NETWORK_FILESYSTEMS
 
 if NETWORK_FILESYSTEMS
 
+source "fs/pohmelfs/Kconfig"
+
 config NFS_FS
 	tristate "NFS file system support"
 	depends on INET
fs/Makefile +1 -0
index 1e7a11b..6ce6a35 100644
@@ -119,3 +119,4 @@ obj-$(CONFIG_HPPFS)		+= hppfs/
 obj-$(CONFIG_DEBUG_FS)		+= debugfs/
 obj-$(CONFIG_OCFS2_FS)		+= ocfs2/
 obj-$(CONFIG_GFS2_FS)           += gfs2/
+obj-$(CONFIG_POHMELFS)		+= pohmelfs/
fs/pohmelfs/Kconfig new file +25 -0
new file mode 100644
index 0000000..38826a6
@@ -0,0 +1,25 @@
+config POHMELFS
+	tristate "POHMELFS filesystem support"
+	help
+	  POHMELFS stands for Parallel Optimized Host Message Exchange Layered File System.
+	  This is a network filesystem which supports coherent caching of data and metadata
+	  on clients.
+
+config POHMELFS_DEBUG
+	bool "POHMELFS debugging"
+	depends on POHMELFS
+	default n
+	help
+	  Turns on excessive POHMELFS debugging facilities.
+	  You usually do not want to slow things down noticebly and get really lots of kernel
+	  messages in syslog.
+
+config POHMELFS_CC_GROUP
+	bool "POHMELFS cache coherency protocol"
+	depends on POHMELFS
+	default y
+	help
+	  This allows to broadcast data and metadata cache coherency messages between clients.
+	  Usually you want this facility, although without locking you can get different from
+	  POSIX expectation behaviour. For more details check POHMELFS homepage and development
+	  section.
fs/pohmelfs/Makefile new file +3 -0
new file mode 100644
index 0000000..aa415a3
@@ -0,0 +1,3 @@
+obj-$(CONFIG_POHMELFS)	+= pohmelfs.o
+
+pohmelfs-y := inode.o config.o dir.o net.o path_entry.o trans.o
fs/pohmelfs/config.c new file +148 -0

148 lines not on this page · raw message

fs/pohmelfs/dir.c new file +961 -0

961 lines not on this page · raw message

fs/pohmelfs/inode.c new file +1819 -0

1,819 lines not on this page · raw message

fs/pohmelfs/net.c new file +978 -0

32 lines not on this page · raw message

fs/pohmelfs/netfs.h new file +496 -0

496 lines not on this page · raw message

fs/pohmelfs/path_entry.c new file +296 -0

296 lines not on this page · raw message

fs/pohmelfs/trans.c new file +609 -0

609 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
	Evgeniy Polyakov

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 5 lines · Evgeniy Polyakov

* Client parallel extensions: ability to write to multiple servers and balance reading between them. Code was imported to the current version, but not enabled yet.
* Client dynamical server reconfiguration: ability to add/remove servers from working set by server command and from userspace.

Neat :)

Quoted 4 lines

2. Source archive.
http://tservice.net.ru/~s0mbre/archive/pohmelfs/
Git tree.
http://tservice.net.ru/~s0mbre/archive/pohmelfs/pohmelfs.git/

Is the server available via git?

http://tservice.net.ru/~s0mbre/archive/pohmelfs/server/ does not include history information, etc.

Jeff

#2 lore raw

Hi.

Quoted 9 lines · Jeff Garzik
Quoted 6 lines · Evgeniy Polyakov

* Client parallel extensions: ability to write to multiple servers and balance reading between them. Code was imported to the current version,
but not enabled yet.
* Client dynamical server reconfiguration: ability to add/remove servers from working set by server command and from userspace.

Neat :)

Yeah :)

Quoted 9 lines
Quoted 4 lines

2. Source archive.
http://tservice.net.ru/~s0mbre/archive/pohmelfs/
Git tree.
http://tservice.net.ru/~s0mbre/archive/pohmelfs/pohmelfs.git/

Is the server available via git?

http://tservice.net.ru/~s0mbre/archive/pohmelfs/server/ does not include history information, etc.

I've just cloned a git tree for the server, but do not expect intersting stuff there, usually I make big commits which incorporate lots of stuff in one go.

http://tservice.net.ru/~s0mbre/archive/pohmelfs/server/fserver.git/

Signature · 1 line
	Evgeniy Polyakov
#11 lore raw
In reply to Evgeniy Polyakov

Evgeniy Polyakov wrote on the blog page:

Quoted 3 lines

Probably there will be some kind of a status messages for servers (i.e. going offline, do not send me data, or I'm becoming slow, do not read from me and so on).

Often you can capture this information in a more scalable manner, by having the clients measure an observable _output_ such as latency, over time.

Each transaction gives the client new feedback about the server(s) being offline (i.e. timeout), becoming slow, etc.

Another potential tool is having the server(s) send an abstract number, from 0-100, indicating their level of desire for new { read | write } transactions. Let us call this client hint "weight". Rather than have a bunch of status messages that indicate server load average, or do-not-read state, summarize this information into read_weight and write_weight hints to the client.

With just a few (two?) simple variables, the client is given the ability to automatically balance and scale load across the cluster, work around failing servers, etc.

Write balancing need not be overly complex...

Jeff

#4 lore raw
In reply to Jeff Garzik
Quoted 11 lines · Jeff Garzik
Quoted 2 lines · Evgeniy Polyakov

Git tree.
http://tservice.net.ru/~s0mbre/archive/pohmelfs/pohmelfs.git/

Is this really the latest commit?

commit 21549d0a101c1c9dcdb1fe8d59685415cc0a5e9a

Author: Evgeniy Polyakov [email protected] <[email protected]>
Date:   Tue May 13 20:54:49 2008 +0400

I would have guessed modifications occurred more recently than May 13.

No it should be cc4d281eb8d9a4d3a5610acf1558c327358f5725

Author: Evgeniy Polyakov [email protected] <[email protected]>
Date:   Sun May 25 17:24:56 2008 +0400

Kconfig entries for cc group and debugging.

I used 'git push remote_repo' to push data after repository was create, probably I should use 'git push --all remote_repo', please try again.

Signature · 1 line
	Evgeniy Polyakov
#5 lore raw
Quoted 12 lines · Evgeniy Polyakov
Quoted 10 lines · Jeff Garzik
Quoted 2 lines · Evgeniy Polyakov

Git tree.
http://tservice.net.ru/~s0mbre/archive/pohmelfs/pohmelfs.git/

Is this really the latest commit?

commit 21549d0a101c1c9dcdb1fe8d59685415cc0a5e9a

Author: Evgeniy Polyakov [email protected] <[email protected]>
Date:   Tue May 13 20:54:49 2008 +0400

I would have guessed modifications occurred more recently than May 13.

Quoted 8 lines

No it should be cc4d281eb8d9a4d3a5610acf1558c327358f5725

Author: Evgeniy Polyakov [email protected] <[email protected]>
Date:   Sun May 25 17:24:56 2008 +0400

Kconfig entries for cc group and debugging.

I used 'git push remote_repo' to push data after repository was create, probably I should use 'git push --all remote_repo', please try again.

Nope.

Did you forget git-update-server-info, since your method is HTTP?

Jeff

#6 lore raw
Quoted 6 lines · Jeff Garzik
Quoted 6 lines

No it should be cc4d281eb8d9a4d3a5610acf1558c327358f5725

Author: Evgeniy Polyakov [email protected] <[email protected]>
Date:   Sun May 25 17:24:56 2008 +0400

Kconfig entries for cc group and debugging.

Quoted 7 lines
Quoted 3 lines

I used 'git push remote_repo' to push data after repository was create, probably I
should use 'git push --all remote_repo', please try again.

Nope.

Did you forget git-update-server-info, since your method is HTTP?

At least on server HEAD (refs/heads/master) points to cc4d281eb8d9a4d3a5610acf1558c327358f5725

I tries git-update-server-info on client and pushed all again, but it returned that everything is up-to-date.

Signature · 1 line
	Evgeniy Polyakov
#12 lore raw
In reply to Jeff Garzik
Quoted 6 lines · Jeff Garzik

Often you can capture this information in a more scalable manner, by having the clients measure an observable _output_ such as latency, over time.

Each transaction gives the client new feedback about the server(s) being offline (i.e. timeout), becoming slow, etc.

Server should be able to provide such info because of sudden changes in environment or administrative tasks. It should not be that many of such messages, but some info should be broadcasted to connected clients. Client by itself should also e able to determine if given server is fast enough of course.

Quoted 6 lines

Another potential tool is having the server(s) send an abstract number, from 0-100, indicating their level of desire for new { read | write } transactions. Let us call this client hint "weight". Rather than have a bunch of status messages that indicate server load average, or do-not-read state, summarize this information into read_weight and write_weight hints to the client.

I actually meant only single message with status structure, which can include whatever we decided to put there including such kind of hints.

Quoted 5 lines

With just a few (two?) simple variables, the client is given the ability to automatically balance and scale load across the cluster, work around failing servers, etc.

Write balancing need not be overly complex...

Yup, some kind of that. I did not yet thought about it in details...

Signature · 1 line
	Evgeniy Polyakov
#7 lore raw
In reply to Evgeniy Polyakov
Quoted 2 lines · Evgeniy Polyakov

I tries git-update-server-info on client and pushed all again, but it returned that everything is up-to-date.

git-update-server-info needs to be run on the server, not the client.

You can automate this by running this on the server:

chmod +x .git/hooks/post-update

so that git-update-server-info always runs on the server, after each push.

See git-update-server-info(1) for more info.

Jeff

#8 lore raw
Quoted 9 lines · Jeff Garzik

git-update-server-info needs to be run on the server, not the client.

You can automate this by running this on the server:

chmod +x .git/hooks/post-update

so that git-update-server-info always runs on the server, after each push.

See git-update-server-info(1) for more info.

Hmm... Nothing can be run on server, since git does not believe it is in git repo:

$ strace git-update-server-info
execve("/usr/bin/git-update-server-info", ["git-update-server-info"], [/* 20 vars */]) = 0

... ommitting mapping and shared lib loading ...

getcwd("/home/s0mbre/public_html/archive/pohmelfs/pohmelfs.git", 4097) = 55

access(".git/refs/", X_OK)              = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/refs/", X_OK)              = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/refs/", X_OK)              = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/refs/", X_OK)              = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/refs/", X_OK)              = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/refs/", X_OK)              = -1 ENOENT (No such file or directory)
chdir("..")                             = 0
access(".git/refs/", X_OK)              = -1 ENOENT (No such file or directory)
chdir("..")                             = 0

write(2, "fatal: ", 7fatal: ) = 7
write(2, "Not a git repository", 20Not a git repository) = 20
write(2, "\n", 1

Obviously there is no .git dir, since we are in it:

pohmelfs.git$ ls -l
total 14

-rw-r--r--  1 s0mbre s0mbre   23 May 13 21:33 HEAD
drwxr-xr-x  2 s0mbre s0mbre   48 May 13 21:33 branches
-rw-r--r--  1 s0mbre s0mbre   66 May 13 21:31 config
-rw-r--r--  1 s0mbre s0mbre   58 May 13 21:33 description
drwxr-xr-x  2 s0mbre s0mbre  328 May 13 21:33 hooks
drwxr-xr-x  2 s0mbre s0mbre   96 May 13 21:33 info

drwxr-xr-x 67 s0mbre s0mbre 1608 May 26 10:20 objects drwxr-xr-x 5 s0mbre s0mbre 120 May 26 10:20 refs

And it can not be accessed from higher layer, since its name is not '.git', but 'pohmelfs.git'.

pohmelfs.git$ ls -l ../
total 440
-rw-r--r-- 1 s0mbre s0mbre 90994 Apr 25 18:37 pohmelfs.1 -rw-r--r-- 1 s0mbre s0mbre 90998 May 12 13:28 pohmelfs.1.fixed -rw-r--r-- 1 s0mbre s0mbre 119384 May 13 21:35 pohmelfs.2 -rw-r--r-- 1 s0mbre s0mbre 136685 May 25 17:20 pohmelfs.3
drwxr-xr-x 7 s0mbre s0mbre 248 May 13 21:33 pohmelfs.git
drwxr-xr-x 3 s0mbre s0mbre 256 May 26 00:19 server

I've updated by hand info/refs, which pointed to the previous revision, but really thought it was mande somewhat automatically? It was created when I made a exportable git tree, when I did git-update-server-info. Git is a magic yet to resolve :)

Signature · 1 line
	Evgeniy Polyakov
#9 lore raw
Quoted 5 lines · Evgeniy Polyakov
Quoted 4 lines · Jeff Garzik

git-update-server-info needs to be run on the server, not the client.

You can automate this by running this on the server:

Quoted 8 lines
Quoted 5 lines

chmod +x .git/hooks/post-update

so that git-update-server-info always runs on the server, after each push.

See git-update-server-info(1) for more info.

Hmm... Nothing can be run on server, since git does not believe it is in git repo:

Sorry, I should have mentioned, you need to set GIT_DIR environment variable, for this case. e.g.

cd /home/s0mbre/archive/pohmelfs GIT_DIR=pohmelfs.git git-update-server-info

or

cd /home/s0mbre/archive/pohmelfs/pohmelfs.git GIT_DIR=. git-update-server-info

Regards,

Jeff

#10 lore raw
Quoted 7 lines · Jeff Garzik

cd /home/s0mbre/archive/pohmelfs GIT_DIR=pohmelfs.git git-update-server-info

or

cd /home/s0mbre/archive/pohmelfs/pohmelfs.git GIT_DIR=. git-update-server-info

Excellent, I've updated server info.
Thanks!

Signature · 1 line
	Evgeniy Polyakov