Raspberry Pi

From Holyheads Wiki
(Difference between revisions)
Jump to: navigation, search
(Things I want to (or might) try sometime)
(Things I want to (or might) try sometime)
Line 65: Line 65:
 
* [http://forum.stmlabs.com/showthread.php?tid=11023 bfq IO scheduler BFQ] to increase throughput  
 
* [http://forum.stmlabs.com/showthread.php?tid=11023 bfq IO scheduler BFQ] to increase throughput  
  
* [http://www.raspberrypi.org/archives/2008 Overclocking] via <code>raspi-config</code> (e.g.  [http://jankarres.de/2013/08/raspberry-pi-overclockinguebertakten-ohne-garantieverlust/] (German))
+
* Explore overclocking limits of my RaspBerry - currently I'm using ''medium'' set via <code>raspi-config</code><br/>
 +
: --> [http://www.roylongbottom.org.uk/Raspberry%20Pi%20Stress%20Tests.htm Raspberry Pi Stress Tests]
  
 
* [http://www.raspberrypi.org/archives/5282 Mathematica on Raspberry Pi, for free]
 
* [http://www.raspberrypi.org/archives/5282 Mathematica on Raspberry Pi, for free]

Revision as of 20:41, 30 December 2013

Contents

Cockbook

My collection of hints, tips and tricks (supporting my memory and maybe also helping others).

Mounting USB drives

  • Slow USB drive performance?
    • Mount with option 'noatime' or 'relatime'
    • Mount without option sync (e.g. keep default async)
    • Auto mount done by OpenElec:
/dev/sda1 on /var/media/Holyhead type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

Samba server / NAS

  • Slow performance?
    • see 'Slow USB drives' above
    • use Raspbian, etc without GUI to get as much CPU power for file-transfer as possible (OpenELEC or RaspBMC constantly result in about 10-20% CPU load when idle, use top to check!)

Misc Q&A

  • Q: Why does my Pi restart when hotplugging a USB drive?
  • Q: Does Raspberry support WOL?
A: No: the Ethernet chip is connected via USB ([3])
  • Q: The new password is to short, or too simple
A: Try adjusting the PAM settings in /etc/pam.d/common-password:
  • remove the 'obscure' setting for pam_unix.so, and add your desired minimum length (e.g. minlen=2)
 password        [success=1 default=ignore]      pam_unix.so sha512 minlen=2
!! This is not recommended if your box is connected to the internet or if it contains private data noone should know!!
But it's nice for testing (if you cannot or do not want to use auto-login.)
  • Q: How to configure static IP?
A: In /etc/network/interfaces:
 iface eth0 inet static
   address 192.168.0.31
   netmask 255.255.255.0
   gateway 192.168.0.1
  • Q: How to read core temperature, etc?
A: vcgencmd: $vcgencmd measure_temp
  • External USB HDD spin down
    • hdparm does not work with my WD Elements (SG_IO: bad host status: 0x7)
    • hd-idle works:
hd-idle -a sda -i 600
for details, see e.g. [4] (German)

Things I want to (or might) try sometime

  • Explore overclocking limits of my RaspBerry - currently I'm using medium set via raspi-config
--> Raspberry Pi Stress Tests
  • NAS/Samba
  • try adjusting 'socket options' in (/etc/samba/smb.conf) to increase NAS performance: some websites recommend to disable the 'socket options', some recommend to set:
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
  • adjust memory split - smaller GPU memory for server
  • ext4 vs ntfs for storage drive
  • Temperature Sensor DS1820
  • Adjust swap file (size, location -> (ext4) HDD): [8]

Some links

Project sites

Blogs, forums, etc

Misc

Manuals

to be continued ...

Personal tools