DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-08-01 19:06:07

melon
Member
Registered: 2010-08-01
Posts: 6

Native Debian performance tips

Hi Forum,

Until yesterday I used a simple chroot Debian installation (found at dns323.kood.org) with 2 x 500 GB hdd with no RAID. I wanted to replace one of the drives with a 1 TB drive. However I wasn't careful enough and suddenly became just another victim of the infamous 'wrong drive formatted' bug - which I have to say it exists even in firmware 1.08.
After this, I realized I'd never want to see this dumb, harmful, careless and dangerous firmware on my nas again, so I decided to go native. (I still wonder how the engineers at D-Link could manage to keep this bug present - it is really hurting)

I am using the dns-323 to share files in the home network via samba, run transmission-daemon (compiled from source) and do regular nightly backups via rdiff-backup and sshfs from other locations.

I was following the excellent tutorial of Martin Michlmayr and read a lot about the topic here in the forum as well. Everything seems to work okay (installation went fine, and with the new kernel the LED blinking issues are gone and fan control works flawless. I chose to install to an USB stick because it can be easily backed up and replaced if needed.

However I found that performance might be somewhat weaker than I got used to, especially samba performance. I don't know whether this is related to the different samba environment or because of the OS sits on a usb stick, I wonder how you configured your system.

For example while I'm writing this I'm copying a folder with some mid size files (1-10 MB each) into one of the smb shares and iowait is >40% despite of that I'm copying over wireless network and transfer speeds hardly get over 1.5 MB/s <- I didn't have the chance yet to test cable speeds.

I'm a little concerned about USB performance as well. Have you thought about putting some parts of the filesystem to tmpfs? This nas is clearly not loaded with that much ram, but it might worth checking?

Any performance related thoughts are welcome, thanks.

Offline

 

#2 2010-08-02 12:13:15

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: Native Debian performance tips

melon wrote:

However I found that performance might be somewhat weaker than I got used to, especially samba performance. I don't know whether this is related to the different samba environment or because of the OS sits on a usb stick, I wonder how you configured your system.

I'm a little concerned about USB performance as well. Have you thought about putting some parts of the filesystem to tmpfs? This nas is clearly not loaded with that much ram, but it might worth checking?

bad idea. every byte ram is sacred.

Any performance related thoughts are welcome, thanks.

My performance is ok. i achieve 10 mb/s write and 14 mb/s read speed. not much worse than the stock firmware.

Offline

 

#3 2010-08-02 22:52:02

melon
Member
Registered: 2010-08-01
Posts: 6

Re: Native Debian performance tips

oxygen wrote:

bad idea. every byte ram is sacred.

Eventually I was thinking about how little is 64MB and I have to agree so tmpfs should be skipped. I'm just curious what other techniques exist to avoid too much writes on usb.
* I mount my / with noatime,nodiratime options
* I tried to minimize logging bloat of many services (unfortunately logging to a remote host is not an option ATM)

oxygen wrote:

My performance is ok. i achieve 10 mb/s write and 14 mb/s read speed. not much worse than the stock firmware.

Can you post a sample (and sanitized) smb.conf file? Still couldn't test throughput on my install, but my instance generally feels a bit more laggy (browsing shares, switching dirs) than I got used to.

Here's my current smb.conf (I'm experimenting with options)

Code:

[global]
        workgroup = MYWORKGROUP
        server string = %h server
        interfaces = 127.0.0.0/8, eth0
        bind interfaces only = Yes
        obey pam restrictions = Yes
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        log file = /var/log/samba/log.%m
        max log size = 50
        max xmit = 16384
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
        load printers = No
        show add printer wizard = No
        dns proxy = No
        panic action = /usr/share/samba/panic-action %d
        use sendfile = Yes

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers

[MyShare]
        comment = This is my share
        path = /path/to/share
        valid users = @mypeople
        force group = mypeople
        read only = No
        create mask = 0660
        force create mode = 0660
        directory mask = 0770
        force directory mode = 0770

This is run via the stock lenny samba package. Shared partition has ext3 with default options.

Last edited by melon (2010-08-02 22:52:33)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB