Gadzira "RAMDisk" pane yako Linux kugovera

RAMDisk icon

Sezvo iwe uchiziva, iko kumhanyisa kumhanyisa kwendangariro kwakakosha kwazvo. Iwo mabhodhoro akagadzirwa munguva yakapfuura pakati pemagineti ndangariro nema processor zvaireva kuti yekukurumidza buffer memory yaifanira kuverengerwa, RAM. Gare gare, pamwe nekufambira mberi kwe microprocessors kwakauya cache, kunyange nekukurumidza kupa buffer pakati pe RAM uye ma CPU marejista. Munguva pfupi yapfuura SSD yakaoma dhiraivha yaonekwa, ayo ari kukurumidza kupfuura magnetic-mechanical HDDs sezvo ari maringe ne flash memory.

Gigabyte akafunga makore mashoma apfuura kuti aumbe hard drive ne RAM (RAMDisk inonzi i-RAM), ndangariro inomhanya kwazvo ichienzaniswa nemadhiraivha akaomarara, asi chimwe chinhu chakafanana chakaitika kune zvakaitika kuna Ageia neiyo PhysX kadhi. Ivo havana kunyatso gel uye vakapedzisira vanyangarika kubva pamusika, uye ikozvino nemaSSD (uye RAM-based SSDs) zvinoita zvisinganzwisisike. Ndezvei? Zvakanaka, iri kushandisa RAM ndangariro kuchengetedza dhata sekunge rakaoma dhisiki, saka kuwana kuri kukurumidza.

Zvakanaka, iwe haudi i-RAM kana SSD, kana chero chinhu chakadai kumhanyisa kuendesa uye kuwana kune madhairekitori, mafaera kana zvirongwa zvaunoda. Kune izvo iwe unogona gadzira RAMDisk pane yako Linux distro. Izvo chete zvinodiwa kuti uve ne RAM yakakwana,> 4GB yakakurudzirwa, kuchengetedza imwe yacho kuti ishandise seyakanyanya-kutsanya "hard disk". Chimwe chinhu senge zvakaitwa nemamwe maGPU emalaptop neKugovana Ndangariro, asi mune ino data rako.

Kuti ugadzire iyi ndangariro, iwe unofanirwa kuverenga ndangariro yauinayo, nekuti kana ukapedza zvese kana chikamu chikuru chayo unozobuda mu RAM nekuda kwezvinangwa zvayakagadzirirwa uye ichave iri benzi. Semuenzaniso, kana iwe uine 8GB ye RAM, unogona kutora 2GB yeiyo RAMDisk. Ini ndinodzokorora, chinhu chake ndechekuti une RAM yakawanda, kana uine 2GB kana 4GB inogona kunge isingakoshe ... (rangarira mu "size =" tsanangura saizi, mumuenzaniso wangu ndasarudza 1024MB, ndokuti, 1GB, kana iwe unogona zvakare kushandisa "G" pachinzvimbo cha "M" kuzvitsanangura mu GB) Kana uchinge waziva izvi, tinotanga kushanda ne matanho anotevera kubva kune yako terminal:

mkdir /tmp/ramdisk

mount -t tmpfs none /tmp/randisk -o size=1024M

Iye zvino une 1GB yakachengetwa mu RAM yako kuti iwe ugone kuwedzera chero chaunoda ku ramdisk dhairekitori ratakasika. Ita bvunzo dzekuita uye iwe uchaona kuti sei inokurumidza zvese zvaunazvo mairi ... Kana uchida, iwe unogona kugadzira iyo chikamu mu RAM yako neimwe faira system kunze kwe tmpfs, senge ext4 kana ramfs.

Uye kana iwe uchida kuti montage yekuisa igare… Chenjera !! Iyo data yaunochengeta pano kana iwe ukadzima PC kana kutanga patsva icharasika, asi iyo yekuisa icharamba iri pkuitira kuti iwe haufanire kugadzira iyo chikamu neese kutanga neinotevera hunyengeri yekuwedzera iyo patafura yekuparadzanisa (fstab) kuti igadzirwe otomatiki (shandisa yako yaunofarira mavara edhita kugadzirisa iyo yekuisa: vi, nano, gedit ...):

gedit /etc/fstab

Y en el fichero de texto que se abre crea la siguiente entrada sin comillas "tmpfs /mnt/ramdisk tmpfs nodev, nosuid, noexec, nodiratime, size=1024M 0 0"

IMPORTANT: Rangarira kuti data rako rinonyangarika paunotangazve kana kuvhara komputa, sezvo RAM isingachinjiki ndangariro. Saka chero chaunoda kuchengeta, ita kopi yacho pane yakaoma dhiraivhu.


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

Makomendi gumi, siya zvako

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

  1.   maurice akadaro

    Ndine mubvunzo, kana tadzima michina, iyo data icharamba iri mundangariro here? Ini ndinotaura izvi sezvo RAM isingachinjiki. Ndingafarire kana iwe ukakwanisa kunditsanangurira izvozvo.

    1.    Isaac PE akadaro

      Sawa,

      Wataura chokwadi, ini ndakakanganwa kutaura muchinyorwa kuti kusagadzikana kuchadzimwa pese paunotanga komputa. Thanks nekundirangaridza, ndatoiwedzera. Icho chinhu chakakosha kwazvo chisingafanirwe kufuratirwa kuitira kuti pasave nemunhu anorasikirwa nedhata ravo.

      Mufaro netariro ndakabatsira. Ndatenda!!!

      1.    maurice akadaro

        Chandaive ndichiona ndechekuti kune mapurogiramu anoita chikamu ichi. Zvinoitwa nemapurogiramu aya kugadzira mufananidzo pane rakaomarara disk reiyo data iri mu RAM kuitira kuti patinotangazve ivo vasarasike. Zvino kana sisitimu yatanga, sekuinzwisisa kwandinoita, iyo data yakachengetedzwa pane rakaomarara dhisiki inokandwa mu RAM kuti tikwanise kuishandisa zvakare. Kutenda ketsamba uye nekupindura nekukurumidza! Kwaziwai!

  2.   Leopold Cantillo akadaro

    Zvinonakidza, ndezve kufunga nezve kumwe kunoshanda, chinyorwa chinogadzira iyi RAM kupatsanura pakutanga uye kutakura mafaera ezvekufarira, hazvizove zvinobatsira ... kuisa dhatabhesi ...? unofanirwa kuongorora nyaya yacho ... ndatenda nekatsamba kacho.

  3.   Sultanovich akadaro

    inogona kungoshanda kutsanangura iyo fs. Mune bvunzo dzangu zvakangoshanda seinotevera:

    mount -t tmpfs tmpfs / tmp / ramdisk -o saizi = 300m

  4.   Ismael akadaro

    Zvinoshamisa, hukuru hunogona kuitwa neGNU / LINUX. :)

  5.   Jimmy orano akadaro

    Zvakadii nezve isu kushandisa iyo RAMDisk yeiyo "tmp" chikamu?

    Zvekugona, ini ndaigona, zvichave zvakafanira kuisa kodhi, ini handibvunze kodhi NDINOBVUNZA PAMUSORO PEMAITIRO ECHIDZIDZO, KUSHANDISA IYO. Ini ndinocherekedza kuti kune dhatabhesi, kunyange ini ndichirangarira nemazvo, patova nesarudzo yekutsigira dhatabhesi matafura mune RAM ndangariro, semuenzaniso: https: // dev.mysql.com/doc /refman/5.5/en/ storage-engine -setting. html

  6.   kusazivikanwa akadaro

    Kana iwe uine rombo rakanaka uye uchizvuzvurudzwa mukati memakore makumi maviri apfuura uchakwanisa kuve ne20GiB ye RAM uye nekudaro uchikwanisa kuteedzera rakapotsa hard disk faira reVirtualBOX (kana chero chero chaiwo muchina) ku RAM; Ini ndinofungidzira kuti iri faira harigare zvinopfuura 64GiB (kusiya yakakwana yemahara RAM yeLinux uye yemuchina chaiwo). Nenzira iyi muchina unobhururuka, uye kana iwe uchidawo shanduko mumushini chaiwo kuti urasike (kusachinjika) hauchazodi kurasikirwa nemashandiro mukuita iro rakaomarara dhisiki remuchina risingachinjiki, nekuti usati watanga iwe unoteedzera iyo kubva kuNVMe / SSD / HDD kuenda ku RAM uye nekudzima chero chiri mu RAM chakarasika (ndizvo chete zvinodiwa mune ino kesi, iko kusachinjika).

    Saka, uine RAM yakawandisa unogona kuita kuti mufananidzo wedhisiki rive risingachinjiki uye nehukuru hwakamisikidzwa, kuwana iwo magumo ekugona kuita mukuwana, izvo pamwe nenyaya yekuti hard disk ichave iri mu RAM, zvinoita zvimwe inofadza pakubata chaiwo michina (kubvuta kamwe chete panguva).

    Kuti kana wapedza kushandisa chaiwo muchina, iwe unoda kuchengetedza mamiriro eiyo chaiyo hard disk, sezvo ichiteedzerwa kubva ku RAM kuenda kuNVMe / SSD / HDD.

    Izvo zvandakaona kune mamwe maNVMe anokwanisa kuverenga nekumhanyisa zvishoma pamusoro pe5GiB / s (ehe, mashanu magigabytes pasekondi mukuverenga) uye kuti kushandisa imwe chete (muRAID0 kana yakafanana ingatonyanya kukurumidza), kuteedzera iyo 48GiB chaiyo dhisiki dhisiki mufananidzo kubva pairi kuenda ku RAM inotora chete anenge gumi masekondi, olé!
    Ne cons kana uchiita zvinopesana maitiro (kubva pa RAM kuenda kuNVMe) iyo inokurumidza kupfuura yandakaona izvozvi inodarika 3GiB / s mukunyora (ehe, matatu magigabytes pasekondi mukunyora), saka kuchengetedza mufananidzo we48GiB chaiwo kutyaira kubva RAM kuenda kuNVMe kunotora chete angangoita gumi nemasere masekondi, zvakare hombe olé!

    Tichava neimwe yeNVMe inokurumidza uye 64GiB ye RAM neLinux uye muchina chaiwo une semuenzaniso Windows 10, zvinonyanya kupasa kana RAM ichishandiswa kuitisa hard disk yemuchina chaiwo.

    Uye izvozvi chipo cheLinux ... panotova nepakeji inonzi "ramroot" (zvirinani zvinoita sekunge kuArch-based distributions) iyo panguva yebhutsu iri basa rekuteedzera mudzi wese weLinux system ku RAM uye kuramba uchibhura kubva ku RAM, yatinowanawo kusagadzikana paLinux yatiri kushandisa, tisingataure kuti inomhanya kubva ku RAM, pamutengo wekuwedzera iyo nguva yebhoti neimwe nzira.

    Kana chero munhu akaverenga izvi achiziva Linux distros bootable kubva kuCD / USB iyo inoteedzerwa ku RAM panguva yekutanga (senge SystemRescueCD, nezvimwewo), ivo vanozoziva mabhenefiti ayo ainopa: Inogara ichitanga zvakafanana, inogara ichikurumidza sezvainogona nekuti zvese zviri mu RAM, hapana chakanyorwa kumadhisiki epanyama panguva yekutanga kana paunenge uchishandisa Linux (chimwe chinhu chinobatsira kuwedzera hupenyu hweSSD, pachezvayo pasingasviki mwedzi uye iine isingasviki netabyte yakanyorwa, mamwe maSDD akatosiya. ini kuti ndishande, kunyanya 120GB reKingDian brand), kunze kwekunge zviripachena kana isu tikakwidza chimwe chinhu mukuverenga & kunyora nekuchengetedza chimwe chinhu ipapo, tichibatanidza izvi nemuchina chaiwo, iyo system 'nhunzi' mune diski inosvika, nekuti munhu wese anoenda ku RAM.

    Kuve neLinux yese mu RAM kunowedzera hupenyu hunobatsira hweSSD uye NVMe, nekuti hapana kana chinhu chakanyorerwa kwavari panguva yebhutsu uye kamwechete havana kubhidha zvachose kunze kwekunge isu pachedu tichizviita.

    Miedzo yangu yanga iri paRenzen 7 2700X (4.35GHz ine 8 cores uye 16 tambo) ine 64GiB DDR4 3200MHz uye 1050GiB NVidia 4 Ti Graphics.

    Ongorora: Kune mamaboardboard ayo anototsigira 1TiB ye RAM nemakrofoni ane makumi matanhatu neshinda senge iyo ThreadRipper 64, nezvimwe.

  7.   Marcos akadaro

    Kutaurwa kwako kunonakidza kwazvo, asi isu hatifanire kuwedzeredza neiyo RAM inodikanwa: Ndine Windows 10 VDI mufananidzo unorema chete 13 GB, iine 14 GB ye RAM yaizoshanda neyakareruka chose.

    Ini handina kunyatso kujekesa nezvekuisa iyo OS yese mu RAM kuti haina kunyanya kuwanda. Kana iwe uine yako SSD yakamisikidzwa muBTRFS ine-pa-iyo-kubhururuka kumanikidzwa inogoneswa (yakawanda yakawanda data yakanyorerwa kudhiraivho), nekuti ingangoita chete data yakanyorwa kune iyo system partition kana mapakeji akaiswa (izvo zviri pachena kuti tinoda kuti igare SSD / disk), mafaera ekugadzirisa anoshandurwa (zvinyorwa zvemafaira ehuremu, uye kumanikidza kweLZO kweBTRFS kunovasiya mune saizi yakatonyanya kuregedza) uye zvimwe zvishoma, nekuti zvinoita kunge kuuraya nhunzi pfuti pfuti; ramba uchifunga kuti ese emazuva ano distros motan / tmp mu RAM kana mushandisi aine zvinopfuura 4 GB, ini ndinofunga nezve RAM, saka iyo SSD / disk haitambure zvakanyanya kupfeka nekuda kwekuwanda kwenguva pfupi mashandiro akanyorwa, zvinova izvo zvimwe nzimbe ini ndakaisa mu / chikamu makore mashoma apfuura.

    Chimwe chinhu imba, pane data rinogara rakanyorwa: macache, marongero anochinja nguva nenguva kana tafambisa hwindo, kurodha pasi, nezvimwe. Ikoko kwaigona kuve kunonakidza kushanda chete mu RAM uye kuwiriranisa kudiski chete kana tichinyatsoda, kunyangwe paine panofanira kuve nechimwe chishandiso (ini handizive kana pachange paine, handizoshamiswa, asi kusvikira ndaverenga yako komenda ini handina kumbofunga nezvazvo.) kuyeuchidza mushandisi pavanenge vachizovhara chikamu kuti pane shanduko mumba mavo / vasina kuchengetedza kana kutotibvunza kana tichida kuzvibatanidza kudiski, nekuti zvirokwazvo hafu yenguva taizokanganwa uye taizodzima komputa kuti tizvibatsire mukutungamira hafu yechipiri gare gare.

    "Kune mamaboardboard ayo anototsigira 1TiB ye RAM nemakrofoni ane tambo makumi matanhatu neshanu senge iyo ThreadRipper 64, nezvimwe."

    Zvatove, uye maraki ayo achiri kutsigira zvakanyanya, asi usatirega tichienda xD. Ngatidzokerei kupuraneti Pasi apo vanhu vasingakwanise kutenga € 800 timu ...

    Thanks.

  8.   Marcos akadaro

    "Ndine mufananidzo weVDI weWindows 10 iyo inorema 13 GB chete, iine 14 GB ye RAM yaizoshanda neyakareruka chose."
    Ndine urombo, ndaireva 24GB. Munwe wangu wakaenda kukiyi inotevera here?