Jump to content


Photo

Swap On, Swap Off.

using swap

  • Please log in to reply
5 replies to this topic

#1 DarthBane

DarthBane

    Member

  • Members
  • PipPip
  • 22 posts

Posted 25 October 2015 - 09:32 AM

How do we enable the use of swap on pcduino3 nano...
Any ideas?

One who has freed themselves from all restrictions has reached perfection… their potential fulfilled. Perfect strength, perfect power, perfect destiny.

 

Honor is a fool's prize. Glory is of no use to the dead

 

 Patience is a secret weapon that forces deception to reveal itself. – Dale Carnegie

 

Those who play with the devil's toys will be brought by degrees to wield his sword.
 
 R. Buckminster Fuller 

 


#2 cwilt

cwilt

    Advanced Member

  • Members
  • PipPipPip
  • 1,012 posts

Posted 25 October 2015 - 02:33 PM

I wouldn't use swap with nand or SD.

#3 igorpec

igorpec

    Member

  • Members
  • PipPip
  • 16 posts

Posted 25 October 2015 - 02:45 PM

I wouldn't use swap with nand or SD.

I agree. 

 

But if you really want it - create a file (/var/swap), 128Mb for example:

dd if=/dev/zero of=/var/swap bs=1024 count=131072 status=noxfer 
chown root:root /var/swap
chmod 0600 /var/swap
mkswap /var/swap
swapon /var/swap

Add it to /etc/fstab

/var/swap none swap sw 0 0

Then play with a parameter which tells system how to use it.

http://askubuntu.com...gure-swappiness

 

I am using it with parameter set to zero (0) which means that the swap usage will be avoided unless absolutely necessary.


  • cwilt and DarthBane like this

#4 DarthBane

DarthBane

    Member

  • Members
  • PipPip
  • 22 posts

Posted 25 October 2015 - 05:17 PM

I agree. 

 

But if you really want it - create a file (/var/swap), 128Mb for example:

dd if=/dev/zero of=/var/swap bs=1024 count=131072 status=noxfer 
chown root:root /var/swap
chmod 0600 /var/swap
mkswap /var/swap
swapon /var/swap

Add it to /etc/fstab

/var/swap none swap sw 0 0

Then play with a parameter which tells system how to use it.

http://askubuntu.com...gure-swappiness

 

I am using it with parameter set to zero (0) which means that the swap usage will be avoided unless absolutely necessary.

 

So, as I have the system booting from /dev/sda

I need something... I'll research and test this tonight.


One who has freed themselves from all restrictions has reached perfection… their potential fulfilled. Perfect strength, perfect power, perfect destiny.

 

Honor is a fool's prize. Glory is of no use to the dead

 

 Patience is a secret weapon that forces deception to reveal itself. – Dale Carnegie

 

Those who play with the devil's toys will be brought by degrees to wield his sword.
 
 R. Buckminster Fuller 

 


#5 DarthBane

DarthBane

    Member

  • Members
  • PipPip
  • 22 posts

Posted 29 October 2015 - 02:07 AM

So, anyway funding for the project got cut.

I have no real want to fund it myself.

 

Two issues:

 

1. Canonical provides no software support for the firmware itself.  If LinkSprite were to make this an important issue, I could see them making a lot more money and it being more friendly to a variety of users.  For example if Microsoft provided extra software support for some specific hardware, your hardware sales increase.

 

2. After I could not substantiate a resaonable method for defending the webserver against a DDoS attack, it became apparent that something more stable is required.  Most likely a Tandem like system with redundancies, according to the last Mutant brainstorming meeting.

 

I had lots of fun, and these systems are fun to play with.  But, when time is money, a system needs lots of stable support.  The major way of doing that is to make sure the system is completely supported for the most part by Canonical.  I believe I have advanced much, even though it seems like my posts were "off" a bit.

 

In the coming months I will try to post as much documentation on the breakthroughs and workarounds as well as how I convinced different repositories that I was both a Linaro and a Ubuntu (with the issue file) so on so on blah blah etc.

 

I will miss the community.


One who has freed themselves from all restrictions has reached perfection… their potential fulfilled. Perfect strength, perfect power, perfect destiny.

 

Honor is a fool's prize. Glory is of no use to the dead

 

 Patience is a secret weapon that forces deception to reveal itself. – Dale Carnegie

 

Those who play with the devil's toys will be brought by degrees to wield his sword.
 
 R. Buckminster Fuller 

 


#6 cwilt

cwilt

    Advanced Member

  • Members
  • PipPipPip
  • 1,012 posts

Posted 29 October 2015 - 11:10 AM

Sorry to hear that the project was cut.

 

Please do post any information you can and I will see about adding it the how-to sections.

 

Post when possible. You will be missed.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users