What's new

Swap problem

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Mdd

New Around Here
Web log is flooded with:
Apr 22 12:05:08 kernel: scsi 0:0:0:0: rejecting I/O to dead device
Apr 22 12:05:08 kernel: Write-error on swap-device (8:0:6296)
Apr 22 12:05:15 kernel: scsi 0:0:0:0: rejecting I/O to dead device
Apr 22 12:05:15 kernel: Write-error on swap-device (8:0:6760)
Apr 22 12:05:18 kernel: scsi 0:0:0:0: rejecting I/O to dead device
Apr 22 12:05:18 kernel: Write-error on swap-device (8:0:6696)
Apr 22 12:05:20 kernel: scsi 0:0:0:0: rejecting I/O to dead device
Apr 22 12:05:20 kernel: Write-error on swap-device (8:0:4464)

I've connected a 3tb external drive, made 2 partitions - 256Mb swap partition and the rest it ext3, executed swapon /dev/sdc1/ and then swapon -a
And now I get these errors -_- Help!
edit: running RT-N66U_3.0.0.4_270.26b
 
Last edited:
I read at some point adding the -a option doesn't work.

Speaking of swap. I also have a 256 mb swap space allocated from a thumb drive.

I've added a post-mount script to my jffs partition to automatically do "swapon /dev/sda1 . But after every reboot of my router it never works. I always have to telnet in and do the command myself.

Do you have a similar script setup to mount your swap space? I wouldn't mind knowing what I'm doing wrong.

Sorry for asking in your thread. But you may know since you also have a swap space set up.
 
My guess would be that your script is executed before your drive is mounted, try adding your command to post-mount script. Or maybe you forgot to chmod your script ? :\ It should be something trivial.
 
Last edited:
My guess would be that your script is executed before your drive is mounted, try adding your command to post-mount script. Or maybe you forgot to chmod your script ? :\ It should be something trivial.

heh, well.. I hate to say it but it was very trivial. I could have swore I ran chmod on it. Apparently not, I ran it and rebooted and sure enough. My swaps allocated.

Sheesh.

Thanks and sorry for the trouble. :eek:
 
No problem!
And since this thread has kind of derailed, I have another question: where does my RAM go?
I took a screenshot of htop, processes are sorted by memory usage:
Ics1P2j.png


It appears that processes use about ~45%, but about 80% of total RAM is used. Could anyone explain why this is happening and where does it go?
 
No problem!
And since this thread has kind of derailed, I have another question: where does my RAM go?
I took a screenshot of htop, processes are sorted by memory usage:
Ics1P2j.png


It appears that processes use about ~45%, but about 80% of total RAM is used. Could anyone explain why this is happening and where does it go?

It would have to be transmission eating it. I run transmission occasionally. Any time I use it to download anything, it automatically caches about 1/3rd of my ram. When it's idle and there are no torrents, stopped or otherwise then the ram is freed.

I don't currently have it installed. I took it off when I moved from optware to entware. I did try it and the same usage occurred. But I did tweek it to keep load down and ram usage stayed about the same. I kept torrent connections to about 90 over all and kept the download speed to under 1MB/s. At peak it would stay just under 1.00 which is good. 0.87 is as high as it got with those settings. It seems like your router is being overworked a bit.

Even with transmission, your memory usage seems a bit excessive. What other applications do you have installed?
 
It would have to be transmission eating it. I run transmission occasionally. Any time I use it to download anything, it automatically caches about 1/3rd of my ram. When it's idle and there are no torrents, stopped or otherwise then the ram is freed.

I don't currently have it installed. I took it off when I moved from optware to entware. I did try it and the same usage occurred. But I did tweek it to keep load down and ram usage stayed about the same. I kept torrent connections to about 90 over all and kept the download speed to under 1MB/s. At peak it would stay just under 1.00 which is good. 0.87 is as high as it got with those settings. It seems like your router is being overworked a bit.

Even with transmission, your memory usage seems a bit excessive. What other applications do you have installed?
Other than transmission there is only samba, the rest is standart.
That's the screenshot of htop with transmission stopped - the memory is still occupied!
Also you mentioned that you stopped using transmission since you moved to entware - have you started using rtorrent?
 
Other than transmission there is only samba, the rest is standart.
That's the screenshot of htop with transmission stopped - the memory is still occupied!
Also you mentioned that you stopped using transmission since you moved to entware - have you started using rtorrent?

Well I only used transmission because of where I lived previously. As you know torrents are used mostly to download illegal files. I had a shared internet connection and since there's no good way to stop people from downloading torrents, illegal or otherwise. I decided to allow my household to download them but at my discretion. I had transmission installed and let everyone use that with transmission remote to all share the same torrent client. That way I could monitor what everyone was getting to make sure they didn't download anything illegal.

I moved a month ago and only myself uses this connection. So no need for it.

Now on to your problem. Well now that you've stopped the transmission service. I'm at a complete loss. I used the same version firmware that you're using the longest out of all the firmware and I never had the problem you are. I've got htop, nano and firefox sync installed on my router and sitting at 153.94 MB free memory. I'm assuming you're still using that version because of the wireless issue with the latest wireless driver?

Since your second post showed your issue as resolved. Maybe you should start another thread with your memory usage problem so that someone else will take notice. I'm not really that educated on the ins and outs of linux. I don't think I could be that much help. I ask you what else you had installed so that I could compare services but since we're using pretty much the same setup aside from transmission. I don't really know what else could be the cause other than a memory leak some where.

I'm not sure if that version of the firmware every had any kind of memory leak problems. But hopefully some one better can chime in.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top