issue48:labolinux
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue48:labolinux [2011/05/08 20:51] – créée fredphil91 | issue48:labolinux [2011/05/30 14:46] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | I am prompted by my co-podcaster and fellow columnist Ed Hewitt to amend a statement I made in File-systems Part 1, which stated that you won't get through a Linux install without defining a swap partition. Whilst most of the installers these days will let you through with a warning of how this is inadvisable, | + | **I am prompted by my co-podcaster and fellow columnist Ed Hewitt to amend a statement I made in File-systems Part 1, which stated that you won't get through a Linux install without defining a swap partition. Whilst most of the installers these days will let you through with a warning of how this is inadvisable, |
Why do I need a SWAP partition for Linux? | Why do I need a SWAP partition for Linux? | ||
- | Swap partitions are necessary for those computers which have less physical memory (RAM) than the applications need. Think of a swap partition as temporary storage which is used when all the physical memory is in use - with no further space for data and programs. Given the complex operating systems we now run, with advanced graphics, large programs, and multi-tasking, | + | Swap partitions are necessary for those computers which have less physical memory (RAM) than the applications need. Think of a swap partition as temporary storage which is used when all the physical memory is in use - with no further space for data and programs. Given the complex operating systems we now run, with advanced graphics, large programs, and multi-tasking, |
- | How do I know if I need one or not? | + | Je suis invité par mon co-podcasteur et collègue chroniqueur Ed Hewitt à modifier une déclaration que j'ai faite dans les systèmes de fichiers Partie 1, où j' |
+ | |||
+ | Pourquoi ai-je besoin d'une partition de swap pour Linux ? | ||
+ | |||
+ | Les partitions de swap sont nécessaires pour les ordinateurs qui ont moins de mémoire physique (RAM) que les applications n'en nécessitent. Pensez à une partition de swap comme à un espace de stockage temporaire qui est utilisé lorsque toute la mémoire physique est en cours d' | ||
+ | |||
+ | **How do I know if I need one or not? | ||
Apologies for answering a question with more questions, but what's your use-case? What's your operating system and your peak workload? | Apologies for answering a question with more questions, but what's your use-case? What's your operating system and your peak workload? | ||
Got a netbook, with 1GB RAM and Ubuntu Netbook edition; mostly surfing the web, writing emails, and the odd wordprocessed document? You may never fully use all the physical memory. Swap partition needed? No. However, jump onto Skype for a conference call with 50 tabs open in Firefox, you'll probably roll-over into Swap right there. Unless you're Ed and the whole thing locks up. Insert smiley face here. | Got a netbook, with 1GB RAM and Ubuntu Netbook edition; mostly surfing the web, writing emails, and the odd wordprocessed document? You may never fully use all the physical memory. Swap partition needed? No. However, jump onto Skype for a conference call with 50 tabs open in Firefox, you'll probably roll-over into Swap right there. Unless you're Ed and the whole thing locks up. Insert smiley face here. | ||
- | My old Toshiba Satellite has only 196MB RAM. Running a light-weight Linux such as Crunchbang or DSL for some light surfing, it's fine with no Swap. Step up to Lubuntu 10.10 with LibreOffice and Firefox running, now I roll over into Swap. | + | My old Toshiba Satellite has only 196MB RAM. Running a light-weight Linux such as Crunchbang or DSL for some light surfing, it's fine with no Swap. Step up to Lubuntu 10.10 with LibreOffice and Firefox running, now I roll over into Swap.** |
- | My Dell 6400 with 4GB RAM and a fully loaded Ubuntu 10.10 is fine with Firefox, Chrome, and OpenOffice multi-tasking together, using no Swap for whole sessions at a time. Launch Audacity sound editor, and OpenShot video editor for some work on the Podcast, and YouTube Hi-Definition, | + | Comment puis-je savoir si j'en ai besoin ou pas ? |
+ | |||
+ | Veuillez m' | ||
+ | |||
+ | Vous avez un netbook, avec 1 Go de RAM et Ubuntu Netbook Edition ; surtout pour surfer sur le web, écrire des courriels, ainsi que quelques documents avec un traitement de texte ? Vous n' | ||
+ | Mon vieux Toshiba Satellite a seulement 196 Mo de RAM. Exécutez un Linux léger comme Crunchbang ou DSL pour un peu de surf léger et ça fonctionnera sans swap. Optez pour Lubuntu 10.10 et lancez LibreOffice et Firefox ; maintenant vous avez besoin de swap. | ||
+ | |||
+ | **My Dell 6400 with 4GB RAM and a fully loaded Ubuntu 10.10 is fine with Firefox, Chrome, and OpenOffice multi-tasking together, using no Swap for whole sessions at a time. Launch Audacity sound editor, and OpenShot video editor for some work on the Podcast, and YouTube Hi-Definition, | ||
Any machine running a current, full-size operating system (not a light-weight), | Any machine running a current, full-size operating system (not a light-weight), | ||
Ligne 18: | Ligne 31: | ||
Why a Whole Partition? | Why a Whole Partition? | ||
- | There is an alternate approach to this ' | + | There is an alternate approach to this ' |
- | What size swap do I need? | + | Mon Dell 6400 avec 4 Go de RAM et un Ubuntu 10.10 lourdement chargé fonctionne bien avec Firefox, Chrome et OpenOffice lancés ensemble en multi-tâches, |
+ | |||
+ | Toute machine exécutant un système d' | ||
+ | |||
+ | Pourquoi une partition entière? | ||
+ | |||
+ | Il existe une approche alternative à cette « gestion de la mémoire virtuelle » qui s' | ||
+ | |||
+ | **What size swap do I need? | ||
As we've seen, maybe none. When we do need one, the trick is to balance the use of smaller, faster RAM against slower larger disk, so that you (or rather the operating system kernel) get the best performance out of that combination. The truth is that - with modern kernels like we have in the Debian 2.6 family - memory management is a lot smarter. The old recommendation that swap should be between one-and-a-half and two times of the physical memory is probably over-generous for a desktop machine, but barely sufficient for a server. Setting a swap space between half and equal the amount of physical RAM should be adequate. If you have a laptop and set it to ' | As we've seen, maybe none. When we do need one, the trick is to balance the use of smaller, faster RAM against slower larger disk, so that you (or rather the operating system kernel) get the best performance out of that combination. The truth is that - with modern kernels like we have in the Debian 2.6 family - memory management is a lot smarter. The old recommendation that swap should be between one-and-a-half and two times of the physical memory is probably over-generous for a desktop machine, but barely sufficient for a server. Setting a swap space between half and equal the amount of physical RAM should be adequate. If you have a laptop and set it to ' | ||
- | In Part Two, Virtual Memory Management, Swap-On, Swap-Off. | + | In Part Two, Virtual Memory Management, Swap-On, Swap-Off.** |
+ | |||
+ | De quelle taille de swap ai-je besoin ? | ||
+ | |||
+ | Comme nous l' | ||
+ | |||
+ | Dans la deuxième partie, Gestion de la mémoire virtuelle, Swap-On, Swap-Off. |
issue48/labolinux.1304880673.txt.gz · Dernière modification : 2011/05/08 20:51 de fredphil91