search for: f_blksize

Displaying 2 results from an estimated 2 matches for "f_blksize".

Did you mean: i_blksize
1998 Oct 31
0
Linux 2.1.126 kernel smbfs SMBwrite 2x speed improvement
...m/page.h> +#define SMB_ST_BLKSIZE (PAGE_SIZE) + #define SMBFS_PARANOIA 1 /* #define SMBFS_DEBUG_TIMESTAMP 1 */ /* #define SMBFS_DEBUG_VERBOSE 1 */ @@ -1224,7 +1227,7 @@ fattr->f_nlink = 1; fattr->f_uid = server->mnt->uid; fattr->f_gid = server->mnt->gid; - fattr->f_blksize = 512; + fattr->f_blksize = SMB_ST_BLKSIZE; } static void @@ -1234,7 +1237,7 @@ if (fattr->attr & aDIR) { fattr->f_mode = server->mnt->dir_mode; - fattr->f_size = 512; + fattr->f_size = SMB_ST_BLKSIZE; } /* Check the read-only flag */ if (fattr->attr &...
1998 Nov 15
0
Performance Tuning advice [tracked down]
...mapped drive: 0:52 (872 kb/sec) In point (2) Try using 'cat x >y' instead of 'cp'. There's a performance problem in kernel which can be fixed by tweaking reported filesystem blocksize constant 1024 to 4096 in /usr/src/linux/fs/smbfs/proc.c/smb_init_dirent()/fattr->f_blksize=1024; I wrote about it to samba@samba.anu and linux-kernel@vger but with no response. :-( > Obviously, when just doing raw data transfer - i.e. not opening and > closing a bunch of files - Samba is coming close to FTP in speed. Some > further testing with different mixes of files show...