포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 20MB 입니다.

임베디드에서는 swap partition을 쓰기가 힘들다.

 

뭐, 쓸일도 대부분 없기는 하지만, 가끔가다가 필요한 경우도 생길지 모른다.

 

해서 함 자료를 찾아봤다.

 

레드햇 문서에 맘에 드는게 있어서 스크랩했고, 조금 더 자세한 것은 같이 첨부된 문서와

 

swapon 관련 문서를 참조하면 된다.

 

 

- To add a swap file:


Determine the size of the new swap file and multiple by 1024 to determine the block size.
For example, the block size of a 64 MB swap file is 65536.

1. At a shell prompt as root, type the following command with count being equal to the desired block size:

# dd if=/dev/zero of=/swapfile bs=1024 count=65536
 

2. Setup the swap file with the command:

# mkswap /swapfile
 

3. To enable the swap file immediately but not automatically at boot time:

# swapon /swapfile
 

4. To enable it at boot time, edit /etc/fstab to include:

/swapfile               swap                    swap    defaults        0 0
 

5. The next time the system boots, it will enable the new swap file.
After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the
command cat /proc/swaps or free.


- To remove a swap file:


1. At a shell prompt as root, execute the following command to disable the swap file
(where /swapfile is the swap file):

# swapoff /swapfile
 
2. Remove its entry from /etc/fstab.

3. Remove the actual file:

# rm /swapfile


 

swap을 만들려면 mkswap과 swapon/swapoff 명령이 있어야 한다.

 

하지만 진짜 찾기 힘들다....ㅋㅋ

함 찾아보시라...소스레벨로....

 

원래는 fsutil같은 녀석을 찾았으나, 걸리지는 않고 한참찾았다....

 

구글링해도 찾기는 하늘의 별따기라네...--;

구글도 요즘 이상한것만 찾아낸다....

쩝...

util-linux

패키지인데,

www.kernel.org 가서 util쪽을 찾으면 될 듯(software인가?)

List of Articles
번호 제목 글쓴이 날짜 조회 수sort
70 MTD/JFFS2 howto file 고도리 2015-06-17 403
69 devicetree usage 번역판 file [1] 고도리 2016-09-17 716
68 드라이버의 다이내믹 설정? [1] lveritas 2013-07-29 3479
67 DeviceTree for ARM 관련 간단 글. [3] 고도리 2013-08-27 5424
66 Linux kernel Documentation DocBook 만들기 [1] 고도리 2012-08-25 5626
65 crosstool-ng 관련 site 고도리 2011-08-15 8462
64 리눅스 커널에서의 container_of macro 설명 고도리 2011-08-15 8895
63 kernel architecture number(mach-types) 직접 커널에 입력하기 고도리 2011-08-15 9234
62 autologin 고현철 2009-01-30 9886
61 debug print문(kernel & app용) 고현철 2009-01-30 10060
60 Creating a Root File System for Linux on OMAP35x 장석원 2009-04-24 10114
» Embedded linux Swap howto 고현철 2009-01-30 10252
58 ubuntu 에서 kubuntu ppa backports repository 지정방법 [1] 고도리 2011-05-10 10403
57 ramdisk howto file 고현철 2009-01-30 10622
56 uBuntu 8.10에서 Crosstool 0.43 사용 방법 [2] 김재훈 2009-02-18 10780
55 2.6.28 kernel에서 sk_buff에서 mac header를 가져오고 찍는 방법 [1] 고현철 2009-02-10 10864
54 GStreamer on TI DaVinci and OMAP 장석원 2009-04-25 10929
53 kernel 2.6(S3C64XX)용 kernel image구조 고현철 2009-02-16 10982
52 임베디드 시스템 포팅 가이드(PXA255 ) #2 file 김재훈 2009-05-17 11018
51 Windows CE에서 NK.bin에 포함된 모듈 확인 하는 방법 file [1] 김재훈 2009-02-04 11030

사용자 로그인