search for: freeram

Displaying 20 results from an estimated 50 matches for "freeram".

2017 Mar 23
3
[PATCH] virtio_balloon: prevent uninitialized variable use
...at(vb, idx++, VIRTIO_BALLOON_S_SWAP_OUT, pages_to_bytes(events[PSWPOUT])); update_stat(vb, idx++, VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]); update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); +#endif update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, pages_to_bytes(i.freeram)); update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT, -- 2.9.0
2017 Mar 23
3
[PATCH] virtio_balloon: prevent uninitialized variable use
...at(vb, idx++, VIRTIO_BALLOON_S_SWAP_OUT, pages_to_bytes(events[PSWPOUT])); update_stat(vb, idx++, VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]); update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); +#endif update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, pages_to_bytes(i.freeram)); update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT, -- 2.9.0
2018 Mar 19
2
[PATCH v2] virtio_balloon: export hugetlb page allocation counts
...ef CONFIG_HUGETLB_PAGE + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGALLOC, + events[HTLB_BUDDY_PGALLOC]); + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGFAIL, + events[HTLB_BUDDY_PGALLOC_FAIL]); +#endif #endif update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, pages_to_bytes(i.freeram)); diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h index 4e8b830..40297a3 100644 --- a/include/uapi/linux/virtio_balloon.h +++ b/include/uapi/linux/virtio_balloon.h @@ -53,7 +53,9 @@ struct virtio_balloon_config { #define VIRTIO_BALLOON_S_MEMTOT 5 /* Tota...
2018 Mar 19
2
[PATCH v2] virtio_balloon: export hugetlb page allocation counts
...ef CONFIG_HUGETLB_PAGE + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGALLOC, + events[HTLB_BUDDY_PGALLOC]); + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGFAIL, + events[HTLB_BUDDY_PGALLOC_FAIL]); +#endif #endif update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, pages_to_bytes(i.freeram)); diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h index 4e8b830..40297a3 100644 --- a/include/uapi/linux/virtio_balloon.h +++ b/include/uapi/linux/virtio_balloon.h @@ -53,7 +53,9 @@ struct virtio_balloon_config { #define VIRTIO_BALLOON_S_MEMTOT 5 /* Tota...
2018 Feb 17
2
[PATCH] virtio_balloon: export huge page allocation statistics
...ef CONFIG_HUGETLB_PAGE + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGALLOC, + events[HTLB_BUDDY_PGALLOC]); + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGFAIL, + events[HTLB_BUDDY_PGALLOC_FAIL]); +#endif #endif update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, pages_to_bytes(i.freeram)); diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h index 4e8b830..e3e8071 100644 --- a/include/uapi/linux/virtio_balloon.h +++ b/include/uapi/linux/virtio_balloon.h @@ -53,7 +53,9 @@ struct virtio_balloon_config { #define VIRTIO_BALLOON_S_MEMTOT 5 /* Tota...
2018 Feb 17
2
[PATCH] virtio_balloon: export huge page allocation statistics
...ef CONFIG_HUGETLB_PAGE + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGALLOC, + events[HTLB_BUDDY_PGALLOC]); + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGFAIL, + events[HTLB_BUDDY_PGALLOC_FAIL]); +#endif #endif update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, pages_to_bytes(i.freeram)); diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h index 4e8b830..e3e8071 100644 --- a/include/uapi/linux/virtio_balloon.h +++ b/include/uapi/linux/virtio_balloon.h @@ -53,7 +53,9 @@ struct virtio_balloon_config { #define VIRTIO_BALLOON_S_MEMTOT 5 /* Tota...
2018 Mar 20
2
[PATCH v2] virtio_balloon: export hugetlb page allocation counts
...S_HTLB_PGALLOC, >> + events[HTLB_BUDDY_PGALLOC]); >> + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGFAIL, >> + events[HTLB_BUDDY_PGALLOC_FAIL]); >> +#endif >> #endif >> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, >> pages_to_bytes(i.freeram)); >> diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h >> index 4e8b830..40297a3 100644 >> --- a/include/uapi/linux/virtio_balloon.h >> +++ b/include/uapi/linux/virtio_balloon.h >> @@ -53,7 +53,9 @@ struct virtio_balloon_config { &...
2018 Mar 22
2
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...; > > + update_stat(vb, idx++, VIRTIO_BALLOON_S_HTLB_PGFAIL, > > > > + events[HTLB_BUDDY_PGALLOC_FAIL]); > > > > +#endif > > > > #endif > > > > update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, > > > > pages_to_bytes(i.freeram)); > > > > diff --git a/include/uapi/linux/virtio_balloon.h b/include/uapi/linux/virtio_balloon.h > > > > index 4e8b830..40297a3 100644 > > > > --- a/include/uapi/linux/virtio_balloon.h > > > > +++ b/include/uapi/linux/virtio_balloon.h > > >...
2018 Apr 09
2
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...ON_S_HTLB_PGFAIL, >>>>>> +??????????? events[HTLB_BUDDY_PGALLOC_FAIL]); >>>>>> +#endif >>>>>> ?? #endif >>>>>> ?????? update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, >>>>>> ?????????????????? pages_to_bytes(i.freeram)); >>>>>> diff --git a/include/uapi/linux/virtio_balloon.h >>>>>> b/include/uapi/linux/virtio_balloon.h >>>>>> index 4e8b830..40297a3 100644 >>>>>> --- a/include/uapi/linux/virtio_balloon.h >>>>>> +++ b/inclu...
2017 Mar 24
2
[PATCH] virtio_balloon: prevent uninitialized variable use
...t;> update_stat(vb, idx++, VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]); >> update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); >> +#endif >> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, >> pages_to_bytes(i.freeram)); >> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT, This will leave four uninitialized slots in vb->stats if CONFIG_VM_EVENT_COUNTERS is not defined. update_balloon_stats should have BUG_ON(idx < VIRTIO_BALLOON_S_NR); at the end. You need to make sure that vb->stats is...
2017 Mar 24
2
[PATCH] virtio_balloon: prevent uninitialized variable use
...t;> update_stat(vb, idx++, VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]); >> update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); >> +#endif >> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, >> pages_to_bytes(i.freeram)); >> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT, This will leave four uninitialized slots in vb->stats if CONFIG_VM_EVENT_COUNTERS is not defined. update_balloon_stats should have BUG_ON(idx < VIRTIO_BALLOON_S_NR); at the end. You need to make sure that vb->stats is...
2016 Feb 16
3
[PATCH 0/2] export 'available' memory to virtio balloon statistics
Add a new field, VIRTIO_BALLOON_S_AVAIL, to virtio_balloon memory statistics protocol, corresponding to 'Available' in /proc/meminfo. It indicates to the hypervisor how big the balloon can be inflated without pushing the guest system to swap. This metric would be very useful in VM orchestration software to improve memory management of different VMs under overcommit. Signed-off-by: Igor
2016 Feb 16
3
[PATCH 0/2] export 'available' memory to virtio balloon statistics
Add a new field, VIRTIO_BALLOON_S_AVAIL, to virtio_balloon memory statistics protocol, corresponding to 'Available' in /proc/meminfo. It indicates to the hypervisor how big the balloon can be inflated without pushing the guest system to swap. This metric would be very useful in VM orchestration software to improve memory management of different VMs under overcommit. Signed-off-by: Igor
2018 Apr 12
2
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...t;>> +??????????? events[HTLB_BUDDY_PGALLOC_FAIL]); >>>>>>>> +#endif >>>>>>>> ?? #endif >>>>>>>> ?????? update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, >>>>>>>> ?????????????????? pages_to_bytes(i.freeram)); >>>>>>>> diff --git a/include/uapi/linux/virtio_balloon.h >>>>>>>> b/include/uapi/linux/virtio_balloon.h >>>>>>>> index 4e8b830..40297a3 100644 >>>>>>>> --- a/include/uapi/linux/virtio_balloon.h >...
2017 Mar 24
2
[PATCH] virtio_balloon: prevent uninitialized variable use
...VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]); > >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); > >>> +#endif > >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, > >>> pages_to_bytes(i.freeram)); > >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT, > > > > This will leave four uninitialized slots in vb->stats if > > CONFIG_VM_EVENT_COUNTERS is not defined. update_balloon_stats should > > have > > > > BUG_ON(idx < VIRTIO_BALLO...
2017 Mar 24
2
[PATCH] virtio_balloon: prevent uninitialized variable use
...VIRTIO_BALLOON_S_MAJFLT, events[PGMAJFAULT]); > >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); > >>> +#endif > >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, > >>> pages_to_bytes(i.freeram)); > >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT, > > > > This will leave four uninitialized slots in vb->stats if > > CONFIG_VM_EVENT_COUNTERS is not defined. update_balloon_stats should > > have > > > > BUG_ON(idx < VIRTIO_BALLO...
2020 Sep 25
2
memory issues
...finally started to investigate. The relevant source is attached in asnip.c. To see what's going on, I wrote a test program, attached as sysinfo.c. You can simply compile it with 'cc -O2 sysinfo.c -o sysinfo'. The output is follows: ./sysinfo unit size: 1 byte(s) # freeram: 153 bufferram: 5 ---- Sum: 158 # trying to allocate 158 sleeping 5 seconds allocate twice as much sleeping 5 seconds memset allocated memory to 0 sleeping 5 seconds memory freed So what asterisk says is about right. When I look at the info fro...
2018 Apr 13
2
[virtio-dev] Re: [PATCH v2] virtio_balloon: export hugetlb page allocation counts
...> > > > > > > > +#endif > > > > > > > > > > ?? #endif > > > > > > > > > > ?????? update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, > > > > > > > > > > ?????????????????? pages_to_bytes(i.freeram)); > > > > > > > > > > diff --git > > > > > > > > > > a/include/uapi/linux/virtio_balloon.h > > > > > > > > > > b/include/uapi/linux/virtio_balloon.h > > > > > > > > > > index 4e8...
2017 Mar 28
1
[PATCH] virtio_balloon: prevent uninitialized variable use
...JFAULT]); > >> >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); > >> >>> +#endif > >> >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, > >> >>> pages_to_bytes(i.freeram)); > >> >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT, > >> > > >> > This will leave four uninitialized slots in vb->stats if > >> > CONFIG_VM_EVENT_COUNTERS is not defined. update_balloon_stats should > >> > have >...
2017 Mar 28
1
[PATCH] virtio_balloon: prevent uninitialized variable use
...JFAULT]); > >> >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MINFLT, events[PGFAULT]); > >> >>> +#endif > >> >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMFREE, > >> >>> pages_to_bytes(i.freeram)); > >> >>> update_stat(vb, idx++, VIRTIO_BALLOON_S_MEMTOT, > >> > > >> > This will leave four uninitialized slots in vb->stats if > >> > CONFIG_VM_EVENT_COUNTERS is not defined. update_balloon_stats should > >> > have >...