search for: _sc_nprocessors_onln

Displaying 12 results from an estimated 12 matches for "_sc_nprocessors_onln".

2020 Sep 18
0
[PATCH common] mlutils: Simple wrapper around sysconf (_SC_NPROCESSORS_ONLN).
.../* NB: This is a "noalloc" call. */ value @@ -368,3 +369,17 @@ guestfs_int_mllib_statvfs_is_network_filesystem (value pathv) return Val_bool (0); #endif } + +/* NB: This is a "noalloc" call. */ +value +guestfs_int_mllib_sysconf_nr_processors_online (value unitv) +{ +#ifdef _SC_NPROCESSORS_ONLN + long n; + + n = sysconf (_SC_NPROCESSORS_ONLN); + if (n > 0) return Val_int (n); +#endif + /* Return a safe value so that callers don't need to deal with errors. */ + return Val_int (1); +} diff --git a/mlutils/unix_utils.ml b/mlutils/unix_utils.ml index 52eb824..2bdda12 100644 --- a/...
2008 Feb 10
0
Possible VCPU hotplug bug
...ced that when using the xm vcpu-set command in Xen to change the number of vcpus assigned to a domU that that omp_get_num_procs() still returns the original value. In trying to determine the cause of this problem, I found that the implementation of omp_get_num_procs() is simply calling the sysconf(_SC_NPROCESSORS_ONLN) function, which is in <unistd.h>. I looked at the implementation of sysconf and it appears that it is parsing the /proc/stat file to count the number of cpus that are online. However, the /proc/stat file is not being updated correctly, which I think is a bug. To test this I executed the f...
2015 Mar 05
1
Re: [PATCH 1/2] New API: btrfs-image
...STFS_BTRFS_IMAGE_COMPRESSLEVEL_BITMASK) && compresslevel >= 0) { ... } > + if (numthreads) { I would prefer not to expose the -t parameter, since it's essentially an implementation detail. If btrfs-image doesn't do the right thing, then you could pass `sysconf (_SC_NPROCESSORS_ONLN)' here (see builder/pxzcat-c.c for an example). > +This used to create an image of a btrfs filesystem. ^ This is used ... > +All data will be zeroed, but metadata and the like is preserved." }; This is fine with the corrections above. Rich. -- Richard Jones, Virtualizatio...
2009 Aug 24
2
Number of CPU's
Any way to get access to the number of CPU's, optionally their type, from within R? In linux I can just read /proc/cpuinfo but for win/mac ? Thanks! H?vard -- H?vard Rue Department of Mathematical Sciences Norwegian University of Science and Technology N-7491 Trondheim, Norway Voice: +47-7359-3533 URL : http://www.math.ntnu.no/~hrue Fax : +47-7359-3524 Email: havard.rue
2010 Oct 03
4
Programmaticly finding number of processors by R code
Dear List Sorry if this question seems very basic. Is there a function to pro grammatically find number of processors in my system _ I want to pass this as a parameter to snow in some serial code to parallel code functions Regards Ajay Websites- http://decisionstats.com http://dudeofdata.com Linkedin- www.linkedin.com/in/ajayohri
2015 Mar 03
4
[PATCH 0/2] btrfs: add support to btrfs-image
This series adds new APIs to support btrfstune. Chen Hanxiao (2): New API: btrfs-image New API: btrfs_image_restore daemon/btrfs.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++ generator/actions.ml | 45 +++++++++++++++++++++++++++ src/MAX_PROC_NR | 2 +- 3 files changed, 133 insertions(+), 1 deletion(-) -- 2.1.0
2008 Jul 08
0
Report this to samba-technical@samba.org, ldap_initialize error
...ed by rpc/rpc.h... no checking for conflicting AUTH_ERROR define in rpc/rpc.h... no checking for test routines... yes checking for ftruncate extend... yes checking for broken getgroups... no checking for sysconf(_SC_NGROUPS_MAX)... yes checking for sysconf(_SC_NPROC_ONLN)... no checking for sysconf(_SC_NPROCESSORS_ONLN)... yes checking for sysconf(_SC_PAGESIZE)... yes checking for getpagesize... yes checking for setresuid... no checking for setreuid... OK yes checking for the Darwin initgroups system call... no checking for fcntl locking... yes checking for broken (glibc2.1/x86) 64 bit fcntl locking... no checkin...
2010 Feb 04
3
3.3 and 3.4 compile failure on dbwrap
...ed by rpc/rpc.h... no checking for conflicting AUTH_ERROR define in rpc/rpc.h... no checking for test routines... yes checking for ftruncate extend... yes checking for broken getgroups... no checking for sysconf(_SC_NGROUPS_MAX)... yes checking for sysconf(_SC_NPROC_ONLN)... no checking for sysconf(_SC_NPROCESSORS_ONLN)... yes checking for sysconf(_SC_PAGESIZE)... yes checking for getpagesize... yes checking for setreuid... yes checking for the Darwin initgroups system call... no checking for fcntl locking... yes checking for broken (glibc2.1/x86) 64 bit fcntl locking... no checking for 64 bit fcntl locking... ye...
2010 May 11
1
Samba 3.5.2 compile on AIX
...ed by rpc/rpc.h... no checking for conflicting AUTH_ERROR define in rpc/rpc.h... no checking for test routines... yes checking for ftruncate extend... yes checking for broken getgroups... no checking for sysconf(_SC_NGROUPS_MAX)... yes checking for sysconf(_SC_NPROC_ONLN)... no checking for sysconf(_SC_NPROCESSORS_ONLN)... yes checking for sysconf(_SC_PAGESIZE)... yes checking for getpagesize... (cached) yes checking for setreuid... OK yes checking for the Darwin initgroups system call... no checking for fcntl locking... yes checking for broken (glibc2.1/x86) 64 bit fcntl locking... no checking for 64 bit fcntl l...
2018 Dec 06
3
Build error while upgrading samba 4.9.3
...: no Checking whether posix_fadvise is available : yes Checking whether sysconf(_SC_NGROUPS_MAX) is available : yes Checking whether sysconf(_SC_NPROC_ONLN) is available : no Checking whether sysconf(_SC_NPROCESSORS_ONLN) is available : yes Checking whether sysconf(_SC_PAGESIZE) is available : yes Checking whether to use the Darwin-specific initgroups system call : no Checking whether struct utimbuf is available...
2013 Jan 07
4
3.6.10 file handle leak under ancient 32-bit kernel
...ed by rpc/rpc.h... no checking for conflicting AUTH_ERROR define in rpc/rpc.h... no checking for test routines... yes checking for ftruncate extend... yes checking for broken getgroups... no checking for sysconf(_SC_NGROUPS_MAX)... yes checking for sysconf(_SC_NPROC_ONLN)... no checking for sysconf(_SC_NPROCESSORS_ONLN)... yes checking for sysconf(_SC_PAGESIZE)... yes checking for getpagesize... (cached) yes checking for setreuid... yes checking for the Darwin initgroups system call... no checking for fcntl locking... yes checking for broken (glibc2.1/x86) 64 bit fcntl locking... no checking for 64 bit fcntl lock...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is time to remove it from libguestfs. [1] https://github.com/libguestfs/virt-p2v [2] http://download.libguestfs.org/virt-p2v/ Pino Toscano (2): Remove virt-p2v Remove remaining virt-p2v bits .gitignore | 4 - Makefile.am | 7 +- bash/Makefile.am