Welcome! Log In Create A New Profile

Advanced

NSA 325 V2 Debian Is Possible!

Posted by Buttzy10169 
Re: NSA 325 V2 Debian Is Possible!
August 23, 2014 01:52AM
Are you allocating swap on this NTFS drive?

Adding 498680k swap on /dev/sdb1.  Priority:-1 extents:1 across:498680k
Adding 524280k swap on /i-data/.system/swap_ul6545p.  Priority:-2 extents:3 across:540664k
NTFS volume version 3.1.
tntfs info: NTFS volume version 3.1 (cluster_size 4096, PAGE_CACHE_SIZE 4096).
Uncached vma de92ec28 (addr 40b3c000 flags 080000ff phy 1e349000) from pid 3461
Uncached vma de92ed88 (addr 40b3f000 flags 080000ff phy 1e349000) from pid 3461
Uncached vma de92ed88 (addr 406fe000 flags 080000ff phy 1e349000) from pid 1414
Uncached vma de92ed88 (addr 406fe000 flags 080000ff phy 1e349000) from pid 1414
GbE port 0: TxEnable WA - Enabled, deep=1, tx_en_bk=1

tntfs error (device sdc1, pid 4148): ntfs_read_locked_attr_inode(): Failed (error 2) while reading attribute inode (mft_no 0x13c, type 0xb0, name_len 4).

Why not using Ext3/Ext4 for this drive?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
August 23, 2014 02:57AM
bodhi Wrote:
-------------------------------------------------------
> Are you allocating swap on this NTFS drive?
>
> Why not using Ext3/Ext4 for this drive?

Swap is in i-data - internal drive

The only thing that is NTFS, is an external 2GB USB drive.

Internal harddrives were empy and without partitions, when inserted into NSA. Partitions are, what NSA makes them as standard.
Re: NSA 325 V2 Debian Is Possible!
August 23, 2014 03:27AM
Ah, I see. You are back running stock kernel! I've misunderstood your post. I did not bother to look at stock kernel too closely, so I won't be of much help there. However, from previous log, you're running out of memory. And your free -a command output confirmed that.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
August 23, 2014 03:42AM
Strange that swap is not even touched, though.
Have a feeling that this might be related to drive issues (non pageable ram in ntfs module?).

What are values of:
cat /proc/sys/vm/swappiness
cat /proc/swaps
cat /proc/meminfo
swapon -s
cat /proc/sys/vm/vfs_cache_pressure

Did you install any 3rd party modules/plugins?

Bye!

--
DavideDG
My NAS userspace configs
My Zyxel NSA325 mod
My D-Link DNS325 mod
My Lacie NS2MAX mod
Re: NSA 325 V2 Debian Is Possible!
August 23, 2014 03:49AM
davidedg Wrote:
-------------------------------------------------------
> Strange that swap is not even touched, though.
> Have a feeling that this might be related to drive
> issues (non pageable ram in ntfs module?).
>
> What are values of:
> cat /proc/sys/vm/swappiness
> cat /proc/swaps
> cat /proc/meminfo
> swapon -s
> cat /proc/sys/vm/vfs_cache_pressure
>
> Did you install any 3rd party modules/plugins?
>
> Bye!

only thing i have done since reset and format, is to install Transmission and deactivated the mediaserver module.

If you like, i can PM you my Telnet login infos... then you maby have a chance to see more
Re: NSA 325 V2 Debian Is Possible!
August 23, 2014 03:59AM
hansenfiks Wrote:
-------------------------------------------------------

> only thing i have done since reset and format, is
> to install Transmission and deactivated the
> mediaserver module.

user mode processes can definitely be swapped out.
You should try allocate fake ram and see if swap kicks in. Don't know if this is doable with stock kernel (i use tmpfs for this).

Also, errors in drives can definitely put a system on its knees, expecially for foreign fs like NTFS (where drivers are not so well written for Linux).
How about checking the NTFS drive from within Windows (chkdsk /R) ?
Or, if you don't mind, reformat in ext4.
Lastly, since this is a USB drive, make sure it has enough power.

--
DavideDG
My NAS userspace configs
My Zyxel NSA325 mod
My D-Link DNS325 mod
My Lacie NS2MAX mod
Re: NSA 325 V2 Debian Is Possible!
August 23, 2014 08:07AM
davidedg Wrote:
-------------------------------------------------------
> Strange that swap is not even touched, though.
> Have a feeling that this might be related to drive
> issues (non pageable ram in ntfs module?).
>
> What are values of:
> cat /proc/sys/vm/swappiness
> cat /proc/swaps
> cat /proc/meminfo
> swapon -s
> cat /proc/sys/vm/vfs_cache_pressure
>
> Did you install any 3rd party modules/plugins?
>
> Bye!

Done with These results :)

root@NSA325-v2:/# cat /proc/sys/vm/swappiness
60
root@NSA325-v2:/# cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/sdb1                               partition       498680  4572    -1
/i-data/55a85da3/.system/swap_ul6545p   file            524280  0       -2
root@NSA325-v2:/# clear
root@NSA325-v2:/# cat /proc/sys/vm/swappiness
60
root@NSA325-v2:/# cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/sdb1                               partition       498680  4572    -1
/i-data/55a85da3/.system/swap_ul6545p   file            524280  0       -2
root@NSA325-v2:/# cat /proc/meminfo
MemTotal:         509844 kB
MemFree:           15576 kB
Buffers:            3136 kB
Cached:           419076 kB
SwapCached:         1364 kB
Active:           226328 kB
Inactive:         216200 kB
Active(anon):      19436 kB
Inactive(anon):    22328 kB
Active(file):     206892 kB
Inactive(file):   193872 kB
Unevictable:       21304 kB
Mlocked:               0 kB
SwapTotal:       1022960 kB
SwapFree:        1018388 kB
Dirty:              6200 kB
Writeback:             0 kB
AnonPages:         40756 kB
Mapped:             8528 kB
Slab:              24576 kB
SReclaimable:       9352 kB
SUnreclaim:        15224 kB
PageTables:         1100 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1277880 kB
Committed_AS:     446268 kB
VmallocTotal:     122880 kB
VmallocUsed:         860 kB
VmallocChunk:     119752 kB
root@NSA325-v2:/# swapon -s
Filename                                Type            Size    Used    Priority
/dev/sdb1                               partition       498680  4572    -1
/i-data/55a85da3/.system/swap_ul6545p   file            524280  0       -2
root@NSA325-v2:/# cat /proc/sys/vm/vfs_cache_pressure
300
root@NSA325-v2:/#

Have removed the external 2GB harddrive. Will try again without it.

EDIT: Seems to be working now. Reformated ALL drives and made a full reset of NAS again ( with pressing the reset button for 2 beeps )
Have been working since yesterday.



Edited 1 time(s). Last edit at 08/24/2014 10:47AM by hansenfiks.
Re: NSA 325 V2 Debian Is Possible!
August 24, 2014 03:07PM
FYI,

Latest pre-release test version for NSA325 U-Boot:
http://forum.doozan.com/read.php?3,12381,17291,page=9#msg-17291

-bodhi
===========================
Forum Wiki
bodhi's corner
Eugen
Re: NSA 325 V2 Debian Is Possible!
August 24, 2014 04:42PM
Sorry for this dupe, i posted this on the main kernel thread and yet discovered this one and moved it. My appologize

Running
Zyxel 325v2
- with 3.16.0-kirkwood-tld-1
- bootinf from USB

Thanks for your awesome job already, i really loved the progress and work!

1. Iam currently eager trying to get my Zyxel suspending, but pm-tools do not work, since /sys/power is missing completely. Is there no suspend /hibernate support in the kernel right now?

2. The hardware "off/suspend" button does not work at all. Is this a now issue / not supported yet?

Is this the right way to give feedback or did i missuse those comments? Thank you!

@butty:
I had my own troubles getting tty run on the zyxel, here is how it worked out
- you dont need to connect the 3.3V and if you do, ensure its 3.3V .. a lot of adpaters are broken and proved 5V
- if you get a black scren, ensure you did not swap TX/RX and just swap them in case (you cant damage anything y that)
- just connect grnd/tx/rx and you are good to go

tty question myself:
- anybody has a working keyboard on the tty? Iam using http://www.amazon.de/USB2-0-Konverter-seriell-CP2102-PAUB022/dp/B004AIAN5K/ref=cm_cr_pr_product_top#productDetails ATM but keyboard does not work
Re: NSA 325 V2 Debian Is Possible!
August 24, 2014 05:44PM
Eugen,

> 2. The hardware "off/suspend" button does not work
> at all. Is this a now issue / not supported yet?

See the Buttzy's note in the 1st post for Power Off button.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
August 25, 2014 12:09AM
Thank you! Worked you perfectly, thank you butz for your work.

I guess my explainations about tty arent worth anything Butz, you seem to have far superior knowledge :)

suspend:
Seems like there is already an answer to this @ http://forum.doozan.com/read.php?2,12096,16201#msg-16201



Edited 1 time(s). Last edit at 08/25/2014 12:11AM by eugen.
Re: NSA 325 V2 Debian Is Possible!
August 25, 2014 01:33AM
@davidedg,

Quote

> [ 396.131910] nsa3xx-hwmon nsa3xx-hwmon: Failed to read MCU data
> 0
> [ 401.391909] nsa3xx-hwmon nsa3xx-hwmon: Failed to read MCU data
> 0


Now that I got sometime to play with the NSA325, I'm seeing this in dmesg also. Have you figured out this problem?

-bodhi
===========================
Forum Wiki
bodhi's corner
Eugen1
Re: NSA 325 V2 Debian Is Possible!
August 25, 2014 04:29PM
Today i did some perfomance tests with AFP/SMB/SCP on a 1GBit connection, writing a 500MB file (single file), on 7200pm older seagate baracuda.
1. iam using rsync with --progress on an i7 desktop hackintosh with an 1GBit wired ethernet directly plugged into the nas (not routing)

- while scp is saturated with 10mb/s due to 100% cpu load - very suprising load kinda

- with ext2 , i get 38mb/s (AFP)
- with ext4, i get 30mb/s (AFP)
- with xfs, i get 38mb/s (AFP)

- with ext4, mdadm raid1(1drive missing), i get 32mb/s (AFP)
- with xfs, mdadm raid1(1drive missing), i get 37mb/s (AFP)

- samba4 is about 7mb/s slower then AFP

The slowness, yet again, of ext4 is astonishing. Also on our i7 servers running proxmox, using ext4 for the raid (esp when mdadm) kills any performance. With a megasys raid its horrible with ext4, ext3/ext4 and xfs are ok.

this is for right now the half of the measure values on smartbuilders and iam suprised. A lot of people already complained about the performance, is this kernel or rather debian related?
Eugen1
Re: NSA 325 V2 Debian Is Possible!
August 25, 2014 04:56PM
With the stock ( not FFP ) uboot i get, same drive as before
- JBOD, samba (42mb/s)
- JBOD, FTP (60mb/s)

Since iam using a mac i guess the 4mb/s on samba are rather smb related, due to the horrible samba implementation in OSX. I could not also make FTP tests on the debian, i cant make AFP tests on the stock boot since its harder to setup there.

Overall it looks like the performance is nearly twice as good on the stock kernal eventhough i have a lot more stuff running. On the debian boot i dont have anything except AFP/Samba4. No httpd, no nothing else

Were could those performance issues come from?
Re: NSA 325 V2 Debian Is Possible!
August 25, 2014 05:56PM
Could be the Ext4 driver in the new kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
August 25, 2014 11:49PM
Well, since the performance is "bad" with ext2 and xfs, it cant be just the ext4 driver. It must be something else. It seems like the CPU load is very high during transfers, somehow
shv
Re: NSA 325 V2 Debian Is Possible!
August 26, 2014 04:22AM
You could check network and drive throughput separetly:
1. Network throughput: with netio on NAS and PC/Mac -> TCP/UDP
2. Drive throughput: with dd
write:dd if=/dev/zero of=/media/usb0/test.tmp bs=500K count=1024
read:      dd if=/media/usb0/test.tmp of=/dev/null bs=500K count=1024
copy:   dd if=/media/usb0/test.tmp of=/media/usb1/test.tmp bs=500K count=1024
With these data you can see if there are already differences in ext4 drive access and/or differences in network speed due to different kernels.

CIFS reading speed from my NSA325-v2 from single Ext4-JBOD drive with original FW: up to 86 MB/s
CIFS writing speed to my NSA325-v2 to single Ext4-JBOD drive with original FW: up to 63 MB/s

-shv



Edited 1 time(s). Last edit at 08/26/2014 04:24AM by shv.
Re: NSA 325 V2 Debian Is Possible!
August 26, 2014 08:51AM
K, a few comments in regards to all of that last 4 posts:

Disk array configuration: note that the stock tests are on JBOD, not RAID'ed in any way.

In my test, my config:
PC: Arch Linux, FX-8120, ASUS mobo, Seagate Barracuda 11 7200RPM (single)
NSA-325v1: Arch Linux ARM, Seagate Barracuda 11 7200RPM (single)
Network: GbE via NetGear GS108T, no other high load.

The HDD are matching batch, same week of production, formatted as a single large ext4.

All file transfers handled via bash, after a mount @ cmdline.
- PC->NSA : WRITE
Quote

dd if=x/test.mkv of=t/dupe/test.mkv bs=500K
3726+1 records in
3726+1 records out
1908163425 bytes (1.9 GB) copied, 41.6328 s, 45.8 MB/s

- NSA->PC : READ
Quote

# rsync --progress t/dupe/test.mkv x/
1,908,163,425 100% 70.37MB/s 0:00:25 (xfr#1, to-chk=0/1)

dd if=t/dupe/test.mkv of=x/test2.mkv bs=500K
3726+1 records in
3726+1 records out
1908163425 bytes (1.9 GB) copied, 90.1273 s, 21.2 MB/s



Edited 2 time(s). Last edit at 08/26/2014 09:06AM by WarheadsSE.
Re: NSA 325 V2 Debian Is Possible!
August 26, 2014 12:21PM
bodhi Wrote:
-------------------------------------------------------
> @davidedg,
>
>
Quote

> [ 396.131910] nsa3xx-hwmon nsa3xx-hwmon:
> Failed to read MCU data
> > 0
> > [ 401.391909] nsa3xx-hwmon nsa3xx-hwmon: Failed
> to read MCU data
> > 0
>
>
> Now that I got sometime to play with the NSA325,
> I'm seeing this in dmesg also. Have you figured
> out this problem?

I completely disabled the sensor after WarHeadsSE answered this way:
http://forum.doozan.com/read.php?2,14351,16068#msg-16068

I can see that the fan *is* working autonomously and does not require any usermode daemon.

--
DavideDG
My NAS userspace configs
My Zyxel NSA325 mod
My D-Link DNS325 mod
My Lacie NS2MAX mod
Re: NSA 325 V2 Debian Is Possible!
August 26, 2014 02:20PM
davidedg,

> I can see that the fan *is* working autonomously
> and does not require any usermode daemon.

I see. So you're not getting temperature readng either?

Thanks.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
August 27, 2014 11:01AM
bodhi Wrote:
-------------------------------------------------------

> I see. So you're not getting temperature readng either?

Nope, exactly.
I can't remember if stock firmware has a sensor for that?
Would be interesting to have one... but I can nonetheless witness no failure with 40°C outside this summer (1 WD Green hard disk), using custom kernel.

BTW, more important than this, is there a usable U-boot version for this device yet?

--
DavideDG
My NAS userspace configs
My Zyxel NSA325 mod
My D-Link DNS325 mod
My Lacie NS2MAX mod
Re: NSA 325 V2 Debian Is Possible!
August 27, 2014 12:07PM
In testing/confirmation
Re: NSA 325 V2 Debian Is Possible!
August 27, 2014 02:31PM
davidedg,

> BTW, more important than this, is there a usable
> U-boot version for this device yet?

While we're waiting for WarheadsSE to release it, here is the test version (I'm running this in NAND):
http://forum.doozan.com/read.php?2,14351,17300#msg-17300

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
August 30, 2014 03:13PM
Updated test U-Boot for NSA325:
http://forum.doozan.com/read.php?3,12381,17420#msg-17420

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
September 01, 2014 09:44PM
@WarheadsSE,

Do you have any plan to implement the NSA325 MCU status readout in the kernel? perhaps a module?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
September 02, 2014 05:16AM
I hadn't intended, no. Not that it isn't possible, but I've got no need for it myself.
Re: NSA 325 V2 Debian Is Possible!
September 02, 2014 04:22PM
Me neither. I just thought about it because I came across the mcc module in stock kernel while browsing around. This module reads the temperature (pull down and pull up those 3 GPIO pins).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
September 04, 2014 05:17PM
@davidedg,
Have you tried the test U-Boot? I'm running NAND version and it has been very stable.

@WarheadsSE
BTW, I have tried to see if I can chainload stock U-Boot from the new U-Boot. I could not get it to load, it just hang. It seems like stock U-boot is old, but not old enough to do this successfully. But there is a path to stock after you've installed new U-Boot: we can UART boot my stock U-Boot build image.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
September 05, 2014 10:42AM
bodhi Wrote:
-------------------------------------------------------
> @davidedg,
> Have you tried the test U-Boot? I'm running NAND
> version and it has been very stable.

now that weekend has finally come, I will be happy to test it :D
As I understood from your reply to sigma, new Uboot has different location for its env and won't touch the stock one.
But, since it's new uboot, I may as well create a new more powerful environment (scripting), correct?

Also, did you include EFI partition support?

--
DavideDG
My NAS userspace configs
My Zyxel NSA325 mod
My D-Link DNS325 mod
My Lacie NS2MAX mod
Re: NSA 325 V2 Debian Is Possible!
September 05, 2014 02:10PM
Mmm... tried several times but... can't seem to go past 34~36 % in kwboot.
I'm using the one shipped/compiled from u-boot 2014.01 (from denx).
root@debian:~/nas/uboot/u-boot-2014.01/tools# ./kwboot -b ~/nas/nsa325/uboot-t1/uboot.2013.10-tld-1.nsa325.mtd0.kwb -p -t /dev/ttyS1 -B 115200

Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  2 % [......................................................................]
  4 % [......................................................................]
  6 % [......................................................................]
  9 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 31 % [......................................................................]
 34 % [...................................................+xmodem: Protocol error

Actually... my usb serial dongle is passed-thru in vmware to a VM with debian... maybe asking too much to wonderful world of virtualization...
I'm reinstalling my old laptop with Mint... and will try again.

--
DavideDG
My NAS userspace configs
My Zyxel NSA325 mod
My D-Link DNS325 mod
My Lacie NS2MAX mod
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: