WSL2 yatove neMemory Reclaim

WSL2

ari Vagadziri veMicrosoft vazivisa kuwedzera kweiyo WSL2 dura (Windows Subsystem yeLinux) muWindows Insider Ongororo Inovaka (Vaka 19013). Mune izvi vanozivisa izvozvo vakawedzera kugarisana kudzorera memory memory (Chiyeuchidzo Dzorera), Yakaburitswa nemaitiro anomhanya muLinux kernel-based nharaunda.

Pakutanga, mune yepamusoro yekushandisa ndangariro nemaapplication kana kernel, ndangariro yakapihwa iyo chaiyo WSL2 muchina, asi mushure meizvozvo yakaramba yakagadziriswa uye haina kudzoka kuhurongwa, kunyangwe mushure mekupedzwa kweyekushandisa-yakasimba maitiro uye kusavapo kwekuwedzera kwekuda kwekugovaniswa ndangariro.

Iye zvino nekurangarira ndangariro muWSL 2, kana ndangariro muLinux isingachadiwe, iyo inomiririra inogona kuziviswa painosunungurwa uye WSL yako 2 VM ichaderedzwa mukukura kwendangariro.

Ndangariro yekudzosa mashandiro inobvumira yakasunungurwa ndangariro kuti idzorerwe kune huru yekushandisa system uye otomatiki inoderedza saizi yekurangarira yemuchina chaiwo. Mune ino kesi, kwete chete ndangariro dzakasunungurwa nemaitiro evashandisi dzinodzoserwa, asiwo ndangariro dzinoshandiswa caching muLinux kernel.

Maitiro evashandisi handizvo zvega zvinhu zvinoshandisa ndangariro mumuchina weLinux chaiwo. Iyo Linux kernel inoshandisawo akawanda mabheki, kusanganisira peji cache, iyo inochengetera faira zvemukati kunatsiridza faira system kuita. Ngatitarisei mumwezve chaiwo-muenzaniso muenzaniso kuti uone kuti izvi zvinopinda sei mukutamba.

Somuenzaniso, iine yakakura dhisiki chiitiko, iyo peji cache saizi inowedzera, umo zvinyorwa zvemafaira zvakagadziriswa panguva yekushanda kweFS. Mushure mekuita "echo 1> / proc / sys / vm / drop_caches", cache inogona kujekeswa uye ndangariro inodzokera kune huru yekushandisa system.

Iyo yekumisikidza yekurangarira yekumisikidza yakavakirwa pane chigamba chakatsanangurwa neIntel mainjiniya kuti iiswe mune huru Linux kernel yekuwedzera kugona kweiyo virtio-balloon driver uye memory manejimendi system.

Iyi ficha inotungamirwa neLinux kernel chigamba iyo inobvumidza zvidiki zvinogumbura zvendangariro kudzoserwa kumuchina wekutambira kana ivo vasingachadiwe mu Linux muenzi. Isu takagadzirisa iyo Linux kernel muWSL2 kuisa iyi chigamba uye yakagadziridzwa Hyper-V kutsigira iri peji rinoratidzira chimiro.

Chikwata chakatsanangurwa chakagadzirirwa kushandiswa pane chero muenzi system kudzorera asina kushandiswa ndangariro mapeji kune iyo inomiririra system, uye inogona kushandiswa neakawanda hypervisors. Kana iri WSL2, chigamba chakagadzirirwa kudzosera ndangariro kune iyo Hyper-V hypervisor.

Izvo zvakakosha kuti urangarira izvo yechipiri edition yeWSL inosiyana mukuendesa izere Linux kernel pane emulator pane nhunzi inoshandura Linux system inoshevedza kuWindows system mafoni.

WSL 2 inguva itsva yezvivakwa izvoe inobvumira iyo Windows subsystem yeLinux kumhanyisa iyo Linux ELF64 mabhinari paWindows. Iyi vhezheni nyowani yeWSL 2 inoshandisa Hyper-V maficha kugadzira isingaremi chaiwo muchina une shoma Linux kernel.

Iyo Linux kernel yakaunzwa muWSL2 yakavakirwa pane vhezheni 4.19, iyo inomhanya munzvimbo yeWindows uchishandisa muchina chaiwo watoshandiswa muAzure. Kugadziridzwa kweLinux kernel kunoendeswa kuburikidza neWindows Kugadziridza injini uye kuyedzwa paMicrosoft inoramba ichiwedzera zvivakwa.

WSL2-yakatarwa zvigamba zvinoshandiswa mukernel inosanganisira optimizations kudzikisa kernel kutanga nguva, kudzora ndangariro kushandiswa, uye kusiya kernel ine yakaderera inodiwa seti yevatyairi uye masystems.

Kana iwe uchida kuziva zvimwe zvakawanda nezvazvo unogona kuzviongorora mune yekutanga posvo. Iyo yekubatanidza ndeiyi.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako