{"id":950,"date":"2022-09-09T17:01:45","date_gmt":"2022-09-09T17:01:45","guid":{"rendered":"https:\/\/sunucucozumleri.com\/?p=950"},"modified":"2022-10-09T19:13:56","modified_gmt":"2022-10-09T19:13:56","slug":"linux-sunucularda-memory-ram-kullanimini-goruntuleme","status":"publish","type":"post","link":"https:\/\/sunucucozumleri.com\/blog\/linux-sunucularda-memory-ram-kullanimini-goruntuleme\/","title":{"rendered":"Linux sunucularda Memory &#8211; Ram kullan\u0131m\u0131n\u0131 g\u00f6r\u00fcnt\u00fcleme"},"content":{"rendered":"<p><strong><a href=\"https:\/\/sunucucozumleri.com\/blog\/frontpage\/\">Sunucu<\/a><\/strong>\u00a0y\u00f6netimine yeni ba\u015flayanlar\u0131n genellikle s\u0131k\u0131nt\u0131 duydu\u011fu konulardan biri Linux sunuculardaki memory kullan\u0131m\u0131d\u0131r. Ekledi\u011fimiz bu makalede linux sunucular\u0131n\u0131zdaki\u00a0<strong>memory<\/strong>\u00a0kullan\u0131m\u0131 hakk\u0131nda daha net bilgilere sahip olabilece\u011finizi d\u00fc\u015f\u00fcn\u00fcyoruz. Memory kullan\u0131m\u0131n\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in kullanman\u0131z gereken komut\u00a0<strong>free<\/strong>\u00a0komutudur. Bu komutu yazd\u0131\u011f\u0131n\u0131zda terminal \u00e7\u0131kt\u0131s\u0131 alt k\u0131s\u0131mdaki gibi olacakt\u0131r.<\/p>\n<p>&nbsp;<\/p>\n<pre>             total       used       free     shared    buffers     cached\r\nMem:       3924572    2788396    1136176          0     410880    1679744\r\n-\/+ buffers\/cache:     697772    3226800\r\nSwap:      8388600     655712    7732888\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Komutun \u00e7\u0131kt\u0131s\u0131nda ki de\u011ferleri daha okunakl\u0131 g\u00f6rmek i\u00e7in baz\u0131 \u00f6zel parametreleri kullanabilirsiniz. Bunlardan en s\u0131k tercih edilen parametre free -m parametresidir. Daha fazla parametre i\u00e7in\u00a0<strong>man free<\/strong>\u00a0yazarak free komutunun t\u00fcm parametrelerine ula\u015fabilirsiniz.\u00a0<strong>free -m<\/strong>parametresinin \u00e7\u0131kt\u0131s\u0131 alt k\u0131s\u0131mdaki gibidir, de\u011ferler bu komutta megabyte olarak verilir.<\/p>\n<pre>             total       used       free     shared    buffers     cached\r\nMem:          3832       2842        989          0        419       1736\r\n-\/+ buffers\/cache:        686       3145\r\nSwap:         8191        639       7552\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Genellikle memory kullan\u0131m\u0131n\u0131 g\u00f6r\u00fcnt\u00fclemek ve de\u011ferlendirmekteki hata \u015fudur, \u00e7\u0131kt\u0131da yer alan Mem: alan\u0131n\u0131n Used tablosunu aktif memory kullan\u0131m\u0131 olarak de\u011ferlendirirler, ancak ger\u00e7ekte aktif memory kullan\u0131m\u0131 used k\u0131sm\u0131nda yer alan de\u011fer de\u011fildir. Linux \u00e7ekirde\u011fi sistemdeki memory kullan\u0131m\u0131n\u0131 en optimal seviyede kullanmaya \u00e7al\u0131\u015f\u0131r ve memory de tutulan bilgileri gerek g\u00f6rd\u00fc\u011f\u00fcnde haz\u0131r tutmak \u00fczere saklar. Bu nedenle Mem: k\u0131sm\u0131 hem aktif kullan\u0131lan bellek miktar\u0131n\u0131 hemde gerekdi\u011finde silinebilen ram \u00fczerinde cache edilmi\u015f \u00f6nbellek miktar\u0131n\u0131 g\u00f6stermektedir. Bu nedenlerden dolay\u0131 free komutunun 2 sat\u0131r\u0131nda bulunan k\u0131s\u0131m, disk \u00fczerindeki \u00f6nbellek d\u0131\u015f\u0131nda kalan ger\u00e7ek kullan\u0131m\u0131 g\u00f6sterir.<\/p>\n<p>&nbsp;<\/p>\n<pre>-\/+ buffers\/cache:        686       3145\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Ger\u00e7ekte sistemde kulland\u0131\u011f\u0131n\u0131z bellek miktar\u0131 -\/+ buffers\/cache: s\u00fctununda yazan used k\u0131sm\u0131d\u0131r. Son olarak free -m \u00e7\u0131kt\u0131s\u0131nda yer alan Swap: i\u015flevi hakk\u0131nda sizleri bilgilendirece\u011fiz. Swap, fiziksel bellek miktar\u0131n\u0131n tamamen t\u00fckendi\u011fi durumlarda i\u015fletim sisteminin karars\u0131z hale gelmemesi i\u00e7in ba\u015fvurdu\u011fu sanal bellek miktar\u0131d\u0131r. Bu sanal bellek sunucunuzdaki sabit diskler \u00fczerinde \u00e7al\u0131\u015f\u0131r. Bunu kesinlikle \u00f6nbellek ile kar\u0131\u015ft\u0131rmay\u0131n, e\u011fer bir sunucu swap bellek kullanmaya ba\u015flad\u0131ysa olduk\u00e7a yava\u015f \u00e7al\u0131\u015fmaya ba\u015flar. Sunucunuzda herhangi bir \u015fekilde Swap: sat\u0131r\u0131n\u0131n used k\u0131sm\u0131nda kullan\u0131m mevcut ise, belirli bir noktada fiziksel bellek miktar\u0131n\u0131z yetersiz kalm\u0131\u015f ve Linux swap bellek miktar\u0131na ba\u015fvurmu\u015f diyebiliriz. (Baz\u0131 uygulamalar\u0131n \u00e7al\u0131\u015fma mant\u0131\u011f\u0131 bu konuda farkl\u0131d\u0131r. Swap bellek miktar\u0131n\u0131 \u00f6ncelikli olarak kullanabilir.) Swap kullanmaya ba\u015flad\u0131\u011f\u0131n\u0131zda sunucunuzun load de\u011ferleri artar, swap bellekte kalan verilere eri\u015fimin ger\u00e7ek fiziksel bellek h\u0131z\u0131ndan \u00e7ok daha d\u00fc\u015f\u00fck bir h\u0131zda eri\u015fti\u011finden performans ile ilgili ciddi s\u0131k\u0131nt\u0131lar yaratabilir. Swap belle\u011fin bo\u015falt\u0131lmas\u0131 i\u00e7in alt k\u0131s\u0131mdaki komutlar\u0131 uygulayabilirsiniz.<\/p>\n<pre>swapoff -a\r\nswapon -a\r\n<\/pre>\n<p>Memory kullan\u0131m\u0131 hakk\u0131nda sormak istedi\u011finiz sorular\u0131n\u0131z\u0131 yorum b\u00f6l\u00fcm\u00fcnden bizlere iletebilirsiniz.<\/p>\n<p>Bu makale, netinternet.com.tr adresinden al\u0131nm\u0131\u015ft\u0131r.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sunucu\u00a0y\u00f6netimine yeni ba\u015flayanlar\u0131n genellikle s\u0131k\u0131nt\u0131 duydu\u011fu konulardan biri Linux sunuculardaki memory kullan\u0131m\u0131d\u0131r. Ekledi\u011fimiz bu makalede linux sunucular\u0131n\u0131zdaki\u00a0memory\u00a0kullan\u0131m\u0131 hakk\u0131nda daha net bilgilere sahip olabilece\u011finizi d\u00fc\u015f\u00fcn\u00fcyoruz. Memory kullan\u0131m\u0131n\u0131 g\u00f6r\u00fcnt\u00fclemek i\u00e7in kullanman\u0131z gereken komut\u00a0free\u00a0komutudur. Bu komutu yazd\u0131\u011f\u0131n\u0131zda terminal \u00e7\u0131kt\u0131s\u0131 alt k\u0131s\u0131mdaki gibi olacakt\u0131r. &nbsp; total used free shared buffers cached Mem: 3924572 2788396 1136176 0 410880 1679744 -\/+ &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1456,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-950","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"acf":[],"_links":{"self":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/comments?post=950"}],"version-history":[{"count":0,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/950\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media\/1456"}],"wp:attachment":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media?parent=950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/categories?post=950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/tags?post=950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}