How to make RPi run longer than few hours?

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

How to make RPi run longer than few hours?

Postby lockheed » Wed Jan 28, 2015 8:35 am

I need RP to run as headless remote server, but I found that it is not possible to make Raspberry Pi run longer than few hours/days because the ethernet interface drops and there is no more connectivity.

The problem being:
$this->bbcode_second_pass_code('', '[Wed Apr 30 11:03:57 2014] smsc95xx 1-1.1:1.0 eth0: unregister 'smsc95xx' usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet
[Wed Apr 30 11:03:57 2014] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[Wed Apr 30 11:03:57 2014] Indeed it is in host mode hprt0 = 00001101
[Wed Apr 30 11:03:57 2014] usb 1-1: reset high-speed USB device number 2 using dwc_otg
[Wed Apr 30 11:03:57 2014] Indeed it is in host mode hprt0 = 00001101
[Wed Apr 30 11:03:58 2014] usb 1-1.1: new high-speed USB device number 4 using dwc_otg
[Wed Apr 30 11:03:58 2014] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[Wed Apr 30 11:03:58 2014] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[Wed Apr 30 11:03:58 2014] smsc95xx v1.0.4
[Wed Apr 30 11:03:59 2014] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:a2:68:54
[Wed Apr 30 11:03:59 2014] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup')

I already tried all the fixes I found, ie:
- smsc95xx.turbo_mode=N
- /etc/sysctl.conf > vm.min_free_kbytes=32768

Nothing helped. So the last idea I have is to restart the networking every minute, like so: http://ubuntuforums.org/showthread.php? ... st13008640
However, this script is for Debian. How could I achieve it in Arch?
lockheed
 
Posts: 26
Joined: Sat May 24, 2014 5:46 am

Re: How to make RPi run longer than few hours?

Postby pepedog » Wed Jan 28, 2015 9:07 am

/etc/sysctl.conf is the wrong file, /etc/sysctl.d/10-myconf.conf
https://wiki.archlinux.org/index.php/Sysctl
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: How to make RPi run longer than few hours?

Postby lockheed » Wed Jan 28, 2015 9:38 am

Thanks. I hope this will help.
lockheed
 
Posts: 26
Joined: Sat May 24, 2014 5:46 am

Re: How to make RPi run longer than few hours?

Postby lockheed » Wed Jan 28, 2015 1:14 pm

Doesn't look like it's helping. It stopped responding to pings just after 3 hours after booting with new settings:
$this->bbcode_second_pass_code('', '[Wed Jan 28 13:00:27 2015] usb 1-1.1: USB disconnect, device number 3
[Wed Jan 28 13:00:27 2015] smsc95xx 1-1.1:1.0 eth0: unregister 'smsc95xx' usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet
[Wed Jan 28 13:00:27 2015] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[Wed Jan 28 13:00:27 2015] usb 1-1.3: USB disconnect, device number 4
[Wed Jan 28 13:00:27 2015] usb 1-1.3.2: USB disconnect, device number 5
[Wed Jan 28 13:00:27 2015] usb 1-1.3.4: USB disconnect, device number 6
[Wed Jan 28 13:00:27 2015] Indeed it is in host mode hprt0 = 00001101
[Wed Jan 28 13:00:27 2015] usb 1-1: reset high-speed USB device number 2 using dwc_otg
[Wed Jan 28 13:00:27 2015] Indeed it is in host mode hprt0 = 00001101
[Wed Jan 28 13:00:28 2015] usb 1-1.1: new high-speed USB device number 7 using dwc_otg
[Wed Jan 28 13:00:28 2015] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[Wed Jan 28 13:00:28 2015] usb 1-1.1: new high-speed USB device number 7 using dwc_otg
[Wed Jan 28 13:00:28 2015] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[Wed Jan 28 13:00:28 2015] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[Wed Jan 28 13:00:28 2015] smsc95xx v1.0.4
[Wed Jan 28 13:00:29 2015] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:33:7b:4c
[Wed Jan 28 13:00:29 2015] usb 1-1.3: new high-speed USB device number 8 using dwc_otg
[Wed Jan 28 13:00:29 2015] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[Wed Jan 28 13:00:29 2015] usb 1-1.3: New USB device found, idVendor=1a40, idProduct=0101
[Wed Jan 28 13:00:29 2015] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[Wed Jan 28 13:00:30 2015] usb 1-1.3: Product: USB 2.0 Hub
[Wed Jan 28 13:00:30 2015] hub 1-1.3:1.0: USB hub found
[Wed Jan 28 13:00:30 2015] hub 1-1.3:1.0: 4 ports detected
[Wed Jan 28 13:00:30 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:30 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: kevent 4 may have been dropped
[Wed Jan 28 13:00:31 2015] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[Wed Jan 28 13:00:31 2015] usb 1-1.3.2: new high-speed USB device number 9 using dwc_otg
[Wed Jan 28 13:00:32 2015] usb 1-1.3.2: New USB device found, idVendor=14cd, idProduct=125c
[Wed Jan 28 13:00:32 2015] usb 1-1.3.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[Wed Jan 28 13:00:32 2015] usb 1-1.3.2: Product: Mass Storage Device
[Wed Jan 28 13:00:32 2015] usb 1-1.3.2: Manufacturer: Generic
[Wed Jan 28 13:00:32 2015] usb 1-1.3.2: SerialNumber: 125C20100726
[Wed Jan 28 13:00:32 2015] usb-storage 1-1.3.2:1.0: USB Mass Storage device detected
[Wed Jan 28 13:00:33 2015] scsi host2: usb-storage 1-1.3.2:1.0
[Wed Jan 28 13:00:33 2015] usb 1-1.3.4: new high-speed USB device number 10 using dwc_otg
[Wed Jan 28 13:00:33 2015] usb 1-1.3.4: New USB device found, idVendor=152d, idProduct=2329
[Wed Jan 28 13:00:33 2015] usb 1-1.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[Wed Jan 28 13:00:34 2015] usb 1-1.3.4: Product: USB to ATA/ATAPI bridge
[Wed Jan 28 13:00:34 2015] usb 1-1.3.4: Manufacturer: JMicron
[Wed Jan 28 13:00:34 2015] usb 1-1.3.4: SerialNumber: 42190020D488
[Wed Jan 28 13:00:34 2015] usb-storage 1-1.3.4:1.0: USB Mass Storage device detected
[Wed Jan 28 13:00:34 2015] scsi 2:0:0:0: Direct-Access Mass Storage Device PQ: 0 ANSI: 0 CCS
[Wed Jan 28 13:00:34 2015] usb-storage 1-1.3.4:1.0: Quirks match for vid 152d pid 2329: 8020
[Wed Jan 28 13:00:35 2015] scsi host3: usb-storage 1-1.3.4:1.0
[Wed Jan 28 13:00:35 2015] sd 2:0:0:0: [sdc] 30367744 512-byte logical blocks: (15.5 GB/14.4 GiB)
[Wed Jan 28 13:00:35 2015] sd 2:0:0:0: [sdc] Write Protect is off
[Wed Jan 28 13:00:35 2015] sd 2:0:0:0: [sdc] Mode Sense: 03 00 00 00
[Wed Jan 28 13:00:35 2015] sd 2:0:0:0: [sdc] No Caching mode page found
[Wed Jan 28 13:00:36 2015] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[Wed Jan 28 13:00:36 2015] sdc: sdc1
[Wed Jan 28 13:00:36 2015] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[Wed Jan 28 13:00:36 2015] scsi 3:0:0:0: Direct-Access Hitachi HTS547575A9E384 JE4O PQ: 0 ANSI: 2 CCS
[Wed Jan 28 13:00:36 2015] sd 3:0:0:0: [sdd] 1465149168 512-byte logical blocks: (750 GB/698 GiB)
[Wed Jan 28 13:00:36 2015] sd 3:0:0:0: [sdd] Write Protect is off
[Wed Jan 28 13:00:36 2015] sd 3:0:0:0: [sdd] Mode Sense: 28 00 00 00
[Wed Jan 28 13:00:36 2015] sd 3:0:0:0: [sdd] Write Protect is off
[Wed Jan 28 13:00:36 2015] sd 3:0:0:0: [sdd] Mode Sense: 28 00 00 00
[Wed Jan 28 13:00:36 2015] sd 3:0:0:0: [sdd] No Caching mode page found
[Wed Jan 28 13:00:36 2015] sd 3:0:0:0: [sdd] Assuming drive cache: write through
[Wed Jan 28 13:00:37 2015] ------------[ cut here ]------------
[Wed Jan 28 13:00:37 2015] WARNING: CPU: 0 PID: 2798 at fs/btrfs/super.c:260 __btrfs_abort_transaction+0xa4/0x120()
[Wed Jan 28 13:00:37 2015] BTRFS: Transaction aborted (error -5)
[Wed Jan 28 13:00:37 2015] Modules linked in: cfg80211 leds_gpio led_class uio_pdrv_genirq uio sch_fq_codel snd_bcm2835 snd_pcm snd_timer snd bcm2708_rng rng_core fuse ipv6
[Wed Jan 28 13:00:37 2015] CPU: 0 PID: 2798 Comm: umount Not tainted 3.18.3-3-ARCH #1
[Wed Jan 28 13:00:37 2015] [<c0013d0c>] (unwind_backtrace) from [<c0011a28>] (show_stack+0x10/0x14)
[Wed Jan 28 13:00:37 2015] [<c0011a28>] (show_stack) from [<c0024a10>] (warn_slowpath_common+0x6c/0x8c)
[Wed Jan 28 13:00:37 2015] [<c0024a10>] (warn_slowpath_common) from [<c0024a60>] (warn_slowpath_fmt+0x30/0x40)
[Wed Jan 28 13:00:37 2015] [<c0024a60>] (warn_slowpath_fmt) from [<c0341acc>] (__btrfs_abort_transaction+0xa4/0x120)
[Wed Jan 28 13:00:37 2015] [<c0341acc>] (__btrfs_abort_transaction) from [<c0363bd8>] (btrfs_run_delayed_refs.part.61+0x290/0x2bc)
[Wed Jan 28 13:00:37 2015] [<c0363bd8>] (btrfs_run_delayed_refs.part.61) from [<c074e7ec>] (commit_cowonly_roots+0x7c/0x31c)
[Wed Jan 28 13:00:37 2015] [<c074e7ec>] (commit_cowonly_roots) from [<c0377794>] (btrfs_commit_transaction+0x6e4/0xfbc)
[Wed Jan 28 13:00:37 2015] [<c0377794>] (btrfs_commit_transaction) from [<c0373164>] (close_ctree+0x1e8/0x208)
[Wed Jan 28 13:00:37 2015] [<c0373164>] (close_ctree) from [<c01292d8>] (generic_shutdown_super+0x70/0x100)
[Wed Jan 28 13:00:37 2015] [<c01292d8>] (generic_shutdown_super) from [<c0129600>] (kill_anon_super+0xc/0x18)
[Wed Jan 28 13:00:37 2015] [<c0129600>] (kill_anon_super) from [<c03409b0>] (btrfs_kill_super+0xc/0x70)
[Wed Jan 28 13:00:37 2015] [<c03409b0>] (btrfs_kill_super) from [<c01299a4>] (deactivate_locked_super+0x54/0x68)
[Wed Jan 28 13:00:37 2015] [<c01299a4>] (deactivate_locked_super) from [<c0144cb8>] (cleanup_mnt+0x38/0x80)
[Wed Jan 28 13:00:37 2015] [<c0144cb8>] (cleanup_mnt) from [<c003d4dc>] (task_work_run+0x90/0xc0)
[Wed Jan 28 13:00:37 2015] [<c003d4dc>] (task_work_run) from [<c00114a0>] (do_work_pending+0xcc/0xec)
[Wed Jan 28 13:00:38 2015] [<c00114a0>] (do_work_pending) from [<c000e340>] (work_pending+0xc/0x20)
[Wed Jan 28 13:00:38 2015] ---[ end trace 4fcc4f4ad2c525fb ]---
[Wed Jan 28 13:00:38 2015] BTRFS: error (device sdb2) in btrfs_run_delayed_refs:2792: errno=-5 IO failure
[Wed Jan 28 13:00:38 2015] BTRFS info (device sdb2): forced readonly
[Wed Jan 28 13:00:38 2015] BTRFS warning (device sdb2): Skipping commit of aborted transaction.
[Wed Jan 28 13:00:38 2015] BTRFS: error (device sdb2) in cleanup_transaction:1607: errno=-5 IO failure
[Wed Jan 28 13:00:38 2015] BTRFS error (device sdb2): commit super ret -5
[Wed Jan 28 13:00:38 2015] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[Wed Jan 28 13:00:38 2015] sdd: sdd1 sdd2
[Wed Jan 28 13:00:38 2015] sd 3:0:0:0: [sdd] Attached SCSI disk
[Wed Jan 28 13:00:39 2015] BTRFS info (device sdd2): enabling auto defrag
[Wed Jan 28 13:00:39 2015] BTRFS info (device sdd2): disk space caching is enabled
')
lockheed
 
Posts: 26
Joined: Sat May 24, 2014 5:46 am

Re: How to make RPi run longer than few hours?

Postby pepedog » Wed Jan 28, 2015 3:10 pm

Do you have a swapfile on your hard drive?
https://wiki.archlinux.org/index.php/Swap#Swap_file
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: How to make RPi run longer than few hours?

Postby crashmaster » Wed Jan 28, 2015 3:38 pm

For me it looks like your power supply for the hub and/or RPi is the weak spot.
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am

Re: How to make RPi run longer than few hours?

Postby lockheed » Wed Jan 28, 2015 5:58 pm

Well, I power it from Hub through the USB port. I will plug another cable from a spare USB hub port -> RPi microUSB power port and see if it helps.
lockheed
 
Posts: 26
Joined: Sat May 24, 2014 5:46 am

Re: How to make RPi run longer than few hours?

Postby zoiner » Wed Feb 04, 2015 12:33 pm

I use a dedicated PSU (2A) and my Pi sits headless online for months using Arch. What about the network or router you are linked to?
zoiner
 
Posts: 1
Joined: Wed Feb 04, 2015 12:25 pm

Re: How to make RPi run longer than few hours?

Postby lockheed » Wed Feb 04, 2015 8:27 pm

My USB hub has a 2A PSU. After connecting RPi with additional hub->RPi's power plug it has not yet crashed. I think that was the solution. It is overclocked like so
$this->bbcode_second_pass_code('', 'arm_freq=1100
arm_freq_min=200
core_freq=550
core_freq_min=75
sdram_freq=640
sdram_freq_min=200
over_voltage=6
')
so it needs steady extra power which its USB port was unable to provide. That is the working theory now and I hope it will stand.
lockheed
 
Posts: 26
Joined: Sat May 24, 2014 5:46 am

Re: How to make RPi run longer than few hours?

Postby crashmaster » Sat Feb 14, 2015 4:11 am

Running the RPi so much overclocked is very risky. Don't wonder if extraordinairy effects happen although it seems to run reliable in a first test.
crashmaster
 
Posts: 119
Joined: Wed Mar 13, 2013 1:00 am


Return to Raspberry Pi

Who is online

Users browsing this forum: Google [Bot] and 81 guests