On Fri, Apr 18, 2008 at 6:30 AM, Szabolcs Szakacsits <szaka@ntfs-3g.org> wrote:Correct me if I'm wrong, but one place where caches seem necessary is for lookup. My file system already has an inode number; my understanding is that the kernel inode cache and dcache are caching the FUSE inode by filename and its hashed inode number. In FUSE, on open, I'm passed a filename which I then have to resolve into an inode # via my own lookup. The VFS does the path_lookup as part of sys_open, and since I get to put private data into the struct inode, I'll generally already have the block # and various other info in the dcache by the time open is called. Also, if you stuff inode data into the private fh field in fuse_file_info, you need to be sure that any subsequent lookups always return the same inode structure, otherwise a thread doing ftruncate vs one doing truncate will cause issues. So I created an internal dcache to solve those two problems. Nope, that's not possible, sorry. Both require use of USB. lkarmafs and omfs_fuse aren't the same thing. Like I said it was anecdotal (copy 20 gigs of X) in both. I'm sure a good portion of it is my fault, such as doing unnecessary malloc & copies in omfs_fuse. I have put exactly zero effort into making it fast so far. BTW, I hardly intended to start a huge VFS vs FUSE debate. I think FUSE is great. I'm not sure it's the right fit for this, is all. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Mike Galbraith | Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2 |
| Greg Kroah-Hartman | [PATCH 011/196] sysfs: Fix a copy-n-paste typo in comment |
| Artem Bityutskiy | [PATCH 04/44 take 2] [UBI] kernel-spce API header |
| Huang, Ying | Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump |
git: | |
| Linus Torvalds | irc usage.. |
| Nicolas Pitre | Re: Figured out how to get Mozilla into git |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Mike | Re: I don't want the .git directory next to my code. |
| Theodore Ts'o | Re: Splitting comp.os.linux |
| Theodore Ts'o | Re: demand paging: proposal |
| Framstag | ftp-error: bind: Address already in use? |
| Ian Kluft | RESULT: comp.os.linux reorganization, all groups pass (part 1/3) |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| Chris Tankersley | Dell PERC 3/Di - No Disks Found |
| Wijnand Wiersma | Almost success: OpenBSD on Xen |
| magical mounts | 10 hours ago | Linux kernel |
| Problem in scim in Fedora 9 | 11 hours ago | Linux general |
| The new Western Digital power saving drives | 11 hours ago | Hardware |
| Battery Maximizer Software | 1 day ago | Linux kernel |
| windows folder creation surprise | 1 day ago | Windows |
| Firewall | 2 days ago | OpenBSD |
| IP layer send packet | 2 days ago | Linux kernel |
| dtrace for linux available | 3 days ago | Linux kernel |
| Unable to mount ramdisk image using UBoot while upgrading to 2.6.15 kernel for a MPC8540 based target | 3 days ago | Linux kernel |
| RealTek RTL8169 - can't connect | 3 days ago | NetBSD |
