]> sourceware.org Git - systemtap.git/commitdiff
BZ738242: tweak memory allocation estimation logic
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 14 Sep 2011 15:46:55 +0000 (11:46 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 14 Sep 2011 15:46:55 +0000 (11:46 -0400)
* runtime/transport/relay_v2.c (_stp_transport_data_fs_init):
  In BULK_MODE, stop overestimating the number of pages we will
  need: it's num_online_cpus rather than num_possible_cpus.

runtime/transport/relay_v2.c

index ff621a4896afe0a3effbf16870bc72189c9831b8..763436de86f50fa0bc42cad011ced01b94a65852 100644 (file)
@@ -305,7 +305,7 @@ static int _stp_transport_data_fs_init(void)
        /* Create "trace" file. */
        npages = _stp_subbuf_size * _stp_nsubbufs;
 #ifdef STP_BULKMODE
-       npages *= num_possible_cpus();
+       npages *= num_online_cpus();
 #endif
        npages >>= PAGE_SHIFT;
        si_meminfo(&si);
This page took 0.031166 seconds and 5 git commands to generate.