LesSix, Ltm, Soleiade, Trois, Robots, Bureaucrates, Administrateurs d’interface, ltm, soleil, Modérateurs, Administrateurs, trois, Modificateurs de widgets
5 689
modifications
(→Swap : création d'une swap file) |
|||
Ligne 37 : | Ligne 37 : | ||
=== Swap === | === Swap === | ||
Source : [https://help.ubuntu.com/community/SwapFaq#Example%20of%20making%20a%20swap%20file Example of making a swap file] | |||
<pre> | |||
dieudo@dieudo-laptop:~$ sudo dd if=/dev/zero of=/mnt/1024Mb.swap bs=1M count=1024 | |||
[sudo] password for dieudo: | |||
1024+0 enregistrements lus | |||
1024+0 enregistrements écrits | |||
1073741824 octets (1,1 GB) copiés, 36,294 s, 29,6 MB/s | |||
dieudo@dieudo-laptop:~$ sudo mkswap /mnt/1024Mb.swap | |||
Setting up swapspace version 1, size = 1048572 KiB | |||
pas d'étiquette, UUID=4920ffd6-dd5b-4bae-b743-3f3ece2d6933 | |||
dieudo@dieudo-laptop:~$ sudo swapon /mnt/1024Mb.swap | |||
dieudo@dieudo-laptop:~$ cat /proc/meminfo | |||
MemTotal: 1002052 kB | |||
MemFree: 13936 kB | |||
Buffers: 2104 kB | |||
Cached: 385788 kB | |||
SwapCached: 0 kB | |||
Active: 526164 kB | |||
Inactive: 293884 kB | |||
HighTotal: 99288 kB | |||
HighFree: 196 kB | |||
LowTotal: 902764 kB | |||
LowFree: 13740 kB | |||
SwapTotal: 1048568 kB | |||
SwapFree: 1048568 kB | |||
Dirty: 136 kB | |||
Writeback: 0 kB | |||
AnonPages: 432192 kB | |||
Mapped: 87676 kB | |||
Slab: 28036 kB | |||
SReclaimable: 12644 kB | |||
SUnreclaim: 15392 kB | |||
PageTables: 3644 kB | |||
NFS_Unstable: 0 kB | |||
Bounce: 0 kB | |||
WritebackTmp: 0 kB | |||
CommitLimit: 1549592 kB | |||
Committed_AS: 1216384 kB | |||
VmallocTotal: 110584 kB | |||
VmallocUsed: 7872 kB | |||
VmallocChunk: 102384 kB | |||
HugePages_Total: 0 | |||
HugePages_Free: 0 | |||
HugePages_Rsvd: 0 | |||
HugePages_Surp: 0 | |||
Hugepagesize: 4096 kB | |||
DirectMap4k: 135168 kB | |||
DirectMap4M: 782336 kB | |||
dieudo@dieudo-laptop:~$ gksudo gedit /etc/fstab | |||
dieudo@dieudo-laptop:~$ free | |||
total used free shared buffers cached | |||
Mem: 1002052 976444 25608 0 9188 356872 | |||
-/+ buffers/cache: 610384 391668 | |||
Swap: 1048568 148 1048420 | |||
</pre> | |||
dans le fichier fstab, ajout de la ligne : | |||
/mnt/1024Mb.swap none swap sw 0 0 | |||
=== Webcam === | === Webcam === |
modifications