RSIZE / WSIZE

Discussion about using NAS on Linux and Unix OS.

Re: RSIZE / WSIZE

Postby tmt » Sat Jan 09, 2010 9:43 pm

a5ian300zx wrote:mount -o tcp 192.168.1.102:/share/MD0_DATA/Qmultimedia /qmultimedia


The quoted portion above is all you need. The other stuff you saw is added by the mount command while displaying and includes tokens which are not cmdline options.

Again - when mounting with TCP, you'll get larger sizes and better performance automatically. You don't need to overspecify the settings. Please just try it.

Using UDP at high r/w sizes is a really bad idea. It depends on IP fragmentation, which is lossy and unreliable. And it's usually slower than TCP no matter what the size. This is why the Linux kernel defaults UDP mounts to 8KB - bad enough to have 6 fragments/rpc, let alone 22.
SS-439, Ubuntu Server 12.04.2 LTS, EXT4, RAID10, 4xHitachi 5K1000
TS-112, 3.7.3 20120801, EXT4, 1xHitachi 7K1000
tmt
Been there, done that
 
Posts: 977
Joined: Mon Nov 16, 2009 11:02 am
NAS Model: SS-439 Pro

Re: RSIZE / WSIZE

Postby a5ian300zx » Sat Jan 09, 2010 11:14 pm

Hi,

thanks for all your help and advice i think im nearly there

mount -o tcp 192.168.1.102:/share/MD0_DATA/Qmultimedia /qmultimedia

i bold bit does not work and i was not sure what it meant by /local/path so i was just guessing - could you shed some light please on what this could be thanks.

a5ian300zx
Player: HDI Dune Prime 3.0 PC: i7 Watercooled Lsi 9260-8i Raid 5 with 8 bays 4x2TB out of 8
NAS:TS 869 Pro Raid 5 + 3GB ram + 4x3TB WD Red
a5ian300zx
Getting the hang of things
 
Posts: 83
Joined: Wed Sep 09, 2009 4:07 pm
Location: London
NAS Model: TS-439U-SP/-RP

Re: RSIZE / WSIZE

Postby tmt » Sat Jan 09, 2010 11:18 pm

The local path (last argument to mount command) is a directory in your filesystem that you're mounting on. Just like mounting a disk, you specify the device, i.e. nfs server and exported directory tree, and the mount point, a directory.

If you haven't created your /qmultimedia directory, you need to do so. But if you're planning to serve it back out, I recommend somewhere other than the root filesystem, because that is built dynamically at each boot, so it will vanish.

Are you really sure you want to do this? Serving a directory you're mounted from another machine is really an odd configuration. Why don't you just move the files to your NAS?
SS-439, Ubuntu Server 12.04.2 LTS, EXT4, RAID10, 4xHitachi 5K1000
TS-112, 3.7.3 20120801, EXT4, 1xHitachi 7K1000
tmt
Been there, done that
 
Posts: 977
Joined: Mon Nov 16, 2009 11:02 am
NAS Model: SS-439 Pro

Re: RSIZE / WSIZE

Postby a5ian300zx » Sun Jan 10, 2010 3:47 am

hI,

All basically all my media is stored on the NAS drive on the default qmultimedia folder and I stream this via NFS to my media player (tvix 6500a or Mede8ter). I just wanted to improve the performance on the NFS on my Nas.

thank you for all your help,

do you Recommend NFS-utils than the standard NFSv4? would i see a improvement in performance.

a5ian300zx
Player: HDI Dune Prime 3.0 PC: i7 Watercooled Lsi 9260-8i Raid 5 with 8 bays 4x2TB out of 8
NAS:TS 869 Pro Raid 5 + 3GB ram + 4x3TB WD Red
a5ian300zx
Getting the hang of things
 
Posts: 83
Joined: Wed Sep 09, 2009 4:07 pm
Location: London
NAS Model: TS-439U-SP/-RP

Re: RSIZE / WSIZE

Postby tmt » Sun Jan 10, 2010 4:50 am

The nfs-utils package provides utilities for managing NFS, and won't change performance. I would recommend not installing them unless you have a specific need, the builtin Qnap stuff can work with just a few added options, it would be a lot more fiddling to use an ipkg for this.

I also don't recommend using NFSv4 for your purpose. If you were doing a lot of filesharing then yes, but if you're just streaming from one server to another, NFSv3 over TCP with large r/w size is all you need.

Again: did you try using "-o tcp" and does it work for you? What r/w sizes and other options does /proc/mounts report when you've succeeded?
SS-439, Ubuntu Server 12.04.2 LTS, EXT4, RAID10, 4xHitachi 5K1000
TS-112, 3.7.3 20120801, EXT4, 1xHitachi 7K1000
tmt
Been there, done that
 
Posts: 977
Joined: Mon Nov 16, 2009 11:02 am
NAS Model: SS-439 Pro

Re: RSIZE / WSIZE

Postby a5ian300zx » Sun Jan 10, 2010 9:37 am

Hi,

the is what is in mounts

rootfs / rootfs rw 0 0
/dev/root / ext2 rw,relatime,errors=continue 0 0
/proc /proc proc rw,relatime 0 0
none /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime,size=32768k 0 0
none /proc/bus/usb usbfs rw,relatime 0 0
/dev/sda4 /mnt/ext ext3 rw,relatime,errors=continue,data=writeback 0 0
/dev/md9 /mnt/HDA_ROOT ext3 rw,relatime,errors=continue,data=writeback 0 0
/dev/md0 /share/MD0_DATA ext3 rw,relatime,errors=continue,data=writeback,jqfmt=vfsv0,usrjquota=aquota.user 0 0
tmpfs /.eaccelerator.tmp tmpfs rw,relatime,size=32768k 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
none /sys/kernel/config configfs rw,relatime 0 0

i think i got it to work with the following command

mount -o tcp 192.168.1.101:/share/MD0_DATA/Qmultimedia /mnt/HDA_ROOT

a5ian300zx
Player: HDI Dune Prime 3.0 PC: i7 Watercooled Lsi 9260-8i Raid 5 with 8 bays 4x2TB out of 8
NAS:TS 869 Pro Raid 5 + 3GB ram + 4x3TB WD Red
a5ian300zx
Getting the hang of things
 
Posts: 83
Joined: Wed Sep 09, 2009 4:07 pm
Location: London
NAS Model: TS-439U-SP/-RP

Re: RSIZE / WSIZE

Postby tmt » Sun Jan 10, 2010 11:25 am

a5ian300zx wrote:the is what is in mounts


AFTER you've mounted the NFS volume, please. :?

Why are you mounting on HDA_ROOT btw? That's a system volume and mounting on it is kind of asking for trouble...
SS-439, Ubuntu Server 12.04.2 LTS, EXT4, RAID10, 4xHitachi 5K1000
TS-112, 3.7.3 20120801, EXT4, 1xHitachi 7K1000
tmt
Been there, done that
 
Posts: 977
Joined: Mon Nov 16, 2009 11:02 am
NAS Model: SS-439 Pro

Re: RSIZE / WSIZE

Postby a5ian300zx » Sun Jan 10, 2010 6:34 pm

Hi,

i tried to create a folder within mnt called Media and tried to mnt it to that but did not work, the results were after the above command.

also if i make a mistake is there a way to go back to orignal setting i.e do i just reflash the original firmware?

a5ian300zx
Player: HDI Dune Prime 3.0 PC: i7 Watercooled Lsi 9260-8i Raid 5 with 8 bays 4x2TB out of 8
NAS:TS 869 Pro Raid 5 + 3GB ram + 4x3TB WD Red
a5ian300zx
Getting the hang of things
 
Posts: 83
Joined: Wed Sep 09, 2009 4:07 pm
Location: London
NAS Model: TS-439U-SP/-RP

Re: RSIZE / WSIZE

Postby mablungfr » Sun Jan 17, 2010 5:25 pm

Hi,
UNFS can NFS share an external ntfs drive on a qnap 109 pro 2 ?
mablungfr
New here
 
Posts: 3
Joined: Tue Oct 28, 2008 10:55 pm
NAS Model: TS-109/209 Pro

Re: RSIZE / WSIZE

Postby a5ian300zx » Sun Jul 03, 2011 5:56 pm

Hi,

just a quick question, if i changed the NFS using what was on the thread will this revert back to default each time i flash the qnap drive.

a5ian300zx
Player: HDI Dune Prime 3.0 PC: i7 Watercooled Lsi 9260-8i Raid 5 with 8 bays 4x2TB out of 8
NAS:TS 869 Pro Raid 5 + 3GB ram + 4x3TB WD Red
a5ian300zx
Getting the hang of things
 
Posts: 83
Joined: Wed Sep 09, 2009 4:07 pm
Location: London
NAS Model: TS-439U-SP/-RP

Previous

Return to Linux & Unix (NFS)

Who is online

Users browsing this forum: No registered users and 3 guests