SwapOn r7800

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
StillBlue
DD-WRT User


Joined: 11 Apr 2009
Posts: 257
Location: UK

PostPosted: Fri Aug 19, 2022 8:16    Post subject: SwapOn r7800 Reply with quote
I am trying to set up a swap partition on my R7800, but it appears the firmware doesn't automatically recognise it and if I use swap-utils in Entware, I get the error 'swapon failed: Function not implemented' when I try and enable the partition.

Any help on this would be amazing as I appear to be running out of memory when trying to use MariaDB.

Thanks

Firmware: DD-WRT v3.0-r49741 std (08/15/22)
Sponsor
dpp3530
DD-WRT Guru


Joined: 12 Dec 2007
Posts: 777
Location: Pittsburgh, PA USA

PostPosted: Fri Aug 19, 2022 10:15    Post subject: Reply with quote
I used the Linux Command Line Method in this guide: https://wiki.dd-wrt.com/wiki/index.php/How_to_-_Format_and_Partition_External_Storage_Device

My USB settings look like the below and it seems to work.

_________________
__________________________
Netgear R7800
DD-WRT v3.0 STD
Linksys WRT1900AC
DD-WRT v3.0 STD
StillBlue
DD-WRT User


Joined: 11 Apr 2009
Posts: 257
Location: UK

PostPosted: Fri Aug 19, 2022 10:46    Post subject: Reply with quote
Very strange. Yes, my USB is partitioned up correctly using Gparted, and the automount does mount the swap partition as Swap, but when I use the command 'free' it shows nothing.

I had no issues with swap partitions on my old WRT54G-TM, but for whatever reason I don't seem to be able to get it to work with my R7800.
StillBlue
DD-WRT User


Joined: 11 Apr 2009
Posts: 257
Location: UK

PostPosted: Fri Aug 19, 2022 11:15    Post subject: Reply with quote
Oh, is swap disabled in the r7800?

https://svn.dd-wrt.com/browser/src/router/configs/ipq806x/.config_r7800#L52

I notice it's commented out.
dpp3530
DD-WRT Guru


Joined: 12 Dec 2007
Posts: 777
Location: Pittsburgh, PA USA

PostPosted: Sat Aug 20, 2022 2:46    Post subject: Reply with quote
I think you're right. My screenshots before were from a different model. From a similarly configured R7800, I see the same thing you do.
_________________
__________________________
Netgear R7800
DD-WRT v3.0 STD
Linksys WRT1900AC
DD-WRT v3.0 STD
StillBlue
DD-WRT User


Joined: 11 Apr 2009
Posts: 257
Location: UK

PostPosted: Sat Aug 20, 2022 4:32    Post subject: Reply with quote
Thank you for confirming that.

I may have to build the webserver on an RPi this time then, until perhaps the firmware for the R7800 is fixed.

Thanks for the help.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14208
Location: Texas, USA

PostPosted: Sat Aug 20, 2022 5:17    Post subject: Reply with quote
Should be enabled in the next public release.

https://svn.dd-wrt.com/changeset/49795

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
StillBlue
DD-WRT User


Joined: 11 Apr 2009
Posts: 257
Location: UK

PostPosted: Sat Aug 20, 2022 5:21    Post subject: Reply with quote
Excellent, thank you. In that case I will hold on for that.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14208
Location: Texas, USA

PostPosted: Sat Aug 20, 2022 5:26    Post subject: Reply with quote
Correction: the next next release. I don't know why we're releasing at 49792 when there are later commits that would benefit the community. *sigh*
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
StillBlue
DD-WRT User


Joined: 11 Apr 2009
Posts: 257
Location: UK

PostPosted: Sat Aug 20, 2022 5:27    Post subject: Reply with quote
OK, thank you. I will await 49795. I have a few other bits to play with in the meantime anyway.

Thanks again.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 20, 2022 8:19    Post subject: Reply with quote
I saw this thread and asked BS to enable it if there were no technical reason to prevent it, most especially since it will be nice to find out if wordpress can be installed in the end.

It will likely be a later public build than 49795, anything higher will include it.

You also have the possibility if more space is required to use CIFS automount (Admin tab), for instance if you have a samba server elsewhere on your network and want to use the share directly in DD-WRT for whatever reason like storage.

I also would recommend any swap to be mounted on a fast drive like a SSD, else the swap when used will likely be slow, other sysctl tweaks can also improve this if available on devices. Your favorite search engine is your friend.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
StillBlue
DD-WRT User


Joined: 11 Apr 2009
Posts: 257
Location: UK

PostPosted: Sat Aug 20, 2022 8:49    Post subject: Reply with quote
Thank you.

Yes, it will be interesting to see if WordPress will work or not, I am quietly hopeful.
StillBlue
DD-WRT User


Joined: 11 Apr 2009
Posts: 257
Location: UK

PostPosted: Tue Aug 23, 2022 6:47    Post subject: Reply with quote
DD-WRT v3.0-r49838 std (08/23/22)

Looking good.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum