Log in

Bekijk de volledige versie : wlhdd out of memory



macke
29-08-2007, 20:19
My WLHDD has an 80GB Hard Drive and is running OLEG 1.9.2.7-7g and Twonky Vision 4.2 Music Server. It starts up OK then Twonky stops. The WLHDD log is attached.

Why is it running out of memory and killing the music server process. What can I do apart from re installing the old version?

Jeroen van Omme
30-08-2007, 06:28
Macke,

I have the lastest TV running on my WL-HDD without a problem.
You should however check the following:
- Set content-type to Music only
- Use a basic navigation tree. I only use <Artist/Album> and <Folder>

Hope this helps.

bubieyehyeh
30-08-2007, 06:59
My WLHDD has an 80GB Hard Drive and is running OLEG 1.9.2.7-7g and Twonky Vision 4.2 Music Server. It starts up OK then Twonky stops. The WLHDD log is attached.

Why is it running out of memory and killing the music server process. What can I do apart from re installing the old version?

Have you created a swapfile or swap partition?

http://www.sprayfly.com/wiki/Filesystem
then add a swap-on to post-boot
http://www.sprayfly.com/wiki/Automount

macke
30-08-2007, 08:15
Thanks for the info. If I do this will I lose everything on the drive currently? It is an 80gb drive with 65gb of music so far. How big should this swap file be?

wengi
30-08-2007, 08:48
You should create a swap file (not a partition).
No data will be lost.

Wl-HDD has 16MB of memory.
A swap file size of 128MB should be enough. I personally use 512MB.

wengi

macke
30-08-2007, 14:12
Thank you for the info. A little beyond me though I fear. Will probably just re- install the old version.

wengi
30-08-2007, 15:17
A little beyond me though I fear.
First hit on google for "linux create swap file":
http://www.linux.com/articles/113956

In order to create our supplementary swap file, we're going to use the dd (data dump) command. You'll need to become root to perform the next few steps. In a regular terminal type su - and enter your root password. When you're ready, carefully type:

dd if=/dev/zero of=/extraswap bs=1M count=512

replacing 512 with the number of megabytes you want in your auxiliary swap file. if= and of= are short for infile and outfile. The /dev/zero device file will give us zeroes to be written to the output file. If you want this file on a different partition, say your /var partition, you would replace /extraswap with /var/extraswap.

Now we have a file the size we want on disk, and we can prepare it for use as a swap partition. We'll use the mkswap command to make our file swap-consumable for the Linux kernel. Again as root, carefully type:

mkswap /extraswap

To turn on our swap file, we run swapon /extraswap. Now when we run swapon -s we should see our existing swap partition and our new swapfile. Also, the free command should show an increase in total swap space."/extraswap" should be e.g. "/opt/swap". And dont forget to edit post-boot (swapon /opt/swap) for activating swap after reboot. See my Howto.

Don't fear. It's easy going and will make life easier.

wengi

macke
30-08-2007, 17:18
downloaded putty. Telnet to Asus wl-hdd

entered

dd if=/dev/zero of=/extraswap bs=1M count=512

response

dd: /extraswap: Read-only file system

How do I change this?

wengi
31-08-2007, 06:36
As i wrote above you should replace "/extraswap" with "/opt/swap".
Just read what i wrote!
You can only write to your harddisk. Your harddisk is normaly mounted to /opt and /tmp/harddisk. But this is depending on you installation.

So if /opt/swap does not work try /tmp/harddisk/swap or any other location of your harddisk.

wengi

macke
04-09-2007, 21:57
Had another go and managed to create the swapfile ok, but got in a mess with getting it to autorun. Decided to start all over again and follow Jono's Wiki. Thanks for all your help.