Weird 'free' output
Ori Idan
ori at heliconbooks.com
Tue May 4 19:52:25 IDT 2021
Note that Linux tries to use available memory for cache, that is why free
memory seems small.
--
Ori Idan CEO Helicon Books
http://www.heliconbooks.com
On Tue, May 4, 2021 at 2:48 PM linux.il <linux.il at gmail.com> wrote:
> Omer, thank you!
> Is it related to the "Inactive" count from /proc/meminfo?
> I used to think that available=free+cache+buffers...
>
> On Tue, May 4, 2021 at 1:19 PM Omer Zak <w1 at zak.co.il> wrote:
>
>> From man free:
>>
>> available
>> Estimation of how much memory is available for starting
>> new applications, without swapping. Unlike the data provided by
>> the cache or free fields, this field takes into account
>> page cache and also that not all reclaimable memory slabs will
>> be reclaimed due to items being in use (MemAvailable in
>> /proc/meminfo, available on kernels 3.14, emulated on kernels
>> 2.6.27+, otherwise the same as free)
>>
>>
>>
>> On Tue, 2021-05-04 at 13:07 +0300, linux.il wrote:
>> > "Available" output seems weird, or I'm missing something?
>> > Any ideas?
>> >
>> > TIA, Vitaly
>> >
>> > free -m
>> > total used free shared buff/cache
>> > available
>> > Mem: 31654 29883 937 1 832
>> > 27675
>> > Swap: 0 0 0
>>
>>
>> --
>> "Prior to capitalism, the way people amassed great wealth was by
>> looting, plundering and enslaving their fellow man. Capitalism made it
>> possible to become wealthy by serving your fellow man." - Walter E.
>> Williams
>> My own blog is at https://tddpirate.zak.co.il/
>>
>> My opinions, as expressed in this E-mail message, are mine alone.
>> They do not represent the official policy of any organization with
>> which I may be affiliated in any way.
>> WARNING TO SPAMMERS: at https://www.zak.co.il/spamwarning.html
>>
>>
>>
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20210504/df4a13ff/attachment-0001.html>
More information about the Linux-il
mailing list