RetroBSD

2.11BSD operating system for microcontrollers
It is currently Wed Jun 19, 2019 12:41 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Dec 23, 2015 3:32 am 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
As the title asks, is swap enabled? I never see swap on sd0b messages on my console.
It would be nice to have the extra 32M RAM sdcard.img claims I have.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
PostPosted: Wed Dec 23, 2015 3:52 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Swap space is defined in the kernel configuration script and compiled int the kernel. See file sys/mips/conf/WIFIRE.pic32:
Code:
# Root filesystem at /dev/sd0a, swap at /dev/sd0b
config          vmunix  root on sd0a
                        swap on sd0b

Utility pstat can display the size of swap space:
Code:
# pstat -T
  5/ 64 files
     51 vnodes
0M/32M swap space


Top
 Profile  
 
PostPosted: Wed Dec 23, 2015 4:12 am 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Great! Thanks.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
PostPosted: Mon Dec 28, 2015 10:21 pm 
User avatar

Joined: Fri Mar 06, 2015 9:13 pm
Posts: 37
Location: Barcelona, SP
Also can use

Code:
# pstat -s 
Device      1K-blocks     Used    Avail Capacity  Type
/dev/sd0c      131072      500   130572     0%    Interleaved


I have on sd0c changed from Whitecat.pic32 config file
and used Vak ufstool custom command to make the image....

Code:
contrib/ufstool/ufstool --repartition=fs=254M:fs=254M:swap=128M custom.img
contrib/ufstool/ufstool --new --partition=1 --manifest=etc/rootfs.manifest custom.img /root/LiteBSD/DESTDIR
contrib/ufstool/ufstool --new --partition=2 custom.img


Code:
# mount
/dev/sd0a on / (local)
/dev/sd0b on /home (local)
# df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a      255372    55740   179200    24%    /
/dev/sd0b      255372      116   234824     0%    /home

_________________
Dennis MacAlistair Ritchie (Sep.09.1941 - Oct.12.2011)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


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 post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission