Bitcoin Forum
December 08, 2016, 09:58:32 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 [59] 60 »
  Print  
Author Topic: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only)  (Read 1530122 times)
johnjacksonbtc
Newbie
*
Offline Offline

Activity: 20


View Profile
March 10, 2016, 03:50:12 PM
 #1161

Aren't there memory leaks in cpuminer 2.4.3 win64 version? Its virtual memory increases roughly 4GB per day while mining 1MB blocks. When remote node restarts these GB disappear and miner then tries to resolve host with four random characters even it was configured to connect at 127.0.0.1.
1481191112
Hero Member
*
Offline Offline

Posts: 1481191112

View Profile Personal Message (Offline)

Ignore
1481191112
Reply with quote  #2

1481191112
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481191112
Hero Member
*
Offline Offline

Posts: 1481191112

View Profile Personal Message (Offline)

Ignore
1481191112
Reply with quote  #2

1481191112
Report to moderator
1481191112
Hero Member
*
Offline Offline

Posts: 1481191112

View Profile Personal Message (Offline)

Ignore
1481191112
Reply with quote  #2

1481191112
Report to moderator
1481191112
Hero Member
*
Offline Offline

Posts: 1481191112

View Profile Personal Message (Offline)

Ignore
1481191112
Reply with quote  #2

1481191112
Report to moderator
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
March 15, 2016, 07:11:58 PM
 #1162

Aren't there memory leaks in cpuminer 2.4.3 win64 version? Its virtual memory increases roughly 4GB per day while mining 1MB blocks. When remote node restarts these GB disappear and miner then tries to resolve host with four random characters even it was configured to connect at 127.0.0.1.

You are right, I just checked and there is indeed a memory leak in the GBT code. I'll push a quick fix to GitHub shortly. Hopefully I'll also be able to publish new binaries soon.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
Borgminer
Hero Member
*****
Offline Offline

Activity: 616


View Profile
March 21, 2016, 07:40:22 AM
 #1163

garbage it doesnt even open up so you can configure it .
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
March 21, 2016, 09:59:14 AM
 #1164

I ran into this a few days ago, it's quite relevant: https://www.reddit.com/r/ProgrammerHumor/comments/479o3r/open_source_documentation/
While I agree that the proposed "fix" is rather harsh, one could argue that if you don't know what a CLI is then you almost certainly don't want to run cpuminer, as nowadays its practical uses are limited to stress testing and to the debugging of other mining-related software.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
March 24, 2016, 05:19:41 PM
 #1165

Version 2.4.4

This is a bugfix release to address a nasty memory leak affecting getblocktemplate mode since version 2.4.

The source code is, as always, available at GitHub. Source tarball and binaries are available at Sourceforge.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
utahjohn
Hero Member
*****
Offline Offline

Activity: 616


View Profile WWW
March 27, 2016, 02:43:24 AM
 #1166

@pooler
I contacted u a few days ago by email about scrypt_core() for aarch64, I don't know how to code a .S file but I came up with a temporary solution:
A fallback written in C++ for unsupported architectures.  
simply place the fallback before the others in build order and it would compile, and be replace by optimized version if the architecture is supported Smiley
This file is critical to my build of Diamond wallet.
Your scrypt-arm.S file will not build on aarch64.
This is ONLY thing stopping build Sad
https://bitcointalk.org/index.php?topic=580725.msg14296622#msg14296622
Like I said if I had C++ source I could get it to run (likely slower).

DMD Diamond coin:
https://bitcointalk.org/index.php?topic=580725

DMD: dUTjohnrXHGYkh7jELWrZkGJbMnE6mdsuh (Staking)
BTC: 1HANJQygp3jHuzutceBgMT7wfCgEug6h4L (Donation)
ETH: 0xba90d7c1ab2bb9d5c07d843476153d1722637250 Mine ETH for 0.5% http://donkeypool.com
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
March 27, 2016, 07:22:18 AM
 #1167

@pooler
I contacted u a few days ago by email about scrypt_core() for aarch64, I don't know how to code a .S file but I came up with a temporary solution:
A fallback written in C++ for unsupported architectures.  
simply place the fallback before the others in build order and it would compile, and be replace by optimized version if the architecture is supported Smiley

As I've told you in my email, I still haven't been able to test cpuminer on aarch64, but time allowing I plan to look into this soon.
If you're OK with an unoptimized build, I think as a temporary solution configuring with --disable-assembly should be enough.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
russy121
Newbie
*
Offline Offline

Activity: 19


View Profile
April 07, 2016, 08:36:52 PM
 #1168

hi all has anyone been able to compile on a raspberry pi 2 or 3 for hodl if so can you tell me how

ty
ps it runs so nice on ubuntu
Pmalek
Hero Member
*****
Offline Offline

Activity: 611



View Profile
April 16, 2016, 05:23:01 PM
 #1169

Why is this reported as a threat? I cant even download it, chrome and firefox are going red!

SYSCOIN - DECENTRALIZED MARKETPLACE , BLOCKCHAIN FOUNDRY
johnjacksonbtc
Newbie
*
Offline Offline

Activity: 20


View Profile
April 21, 2016, 09:34:22 AM
 #1170

Version 2.4.4

This is a bugfix release to address a nasty memory leak affecting getblocktemplate mode since version 2.4.

The source code is, as always, available at GitHub. Source tarball and binaries are available at Sourceforge.


Thanks for a release, but memleak still is present - 2MB per getblocktemplate request. I also see lowered I/O and page priority values, that looks better.

Why is this reported as a threat? I cant even download it, chrome and firefox are going red!

I also saw that red warning, you should be able to ignore this warning and download this software. It is marked red because it is easiest way for antivirus (or virus that detects other viruses) to identify that your system is compromised. Usually antivirus detects miner executable but main virus remains in system.
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
April 21, 2016, 10:03:14 PM
 #1171

memleak still is present - 2MB per getblocktemplate request.

I must have missed this one because it only happens when long polling is enabled. Anyway, I've just pushed a fix to the git repo. Thank you again!

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
TradeForProfits
Jr. Member
*
Offline Offline

Activity: 34


View Profile
May 19, 2016, 05:23:51 AM
 #1172

appreciate your work. Is there a way for a noob to compile scrypt-jane support into your latest optimized cpuminer? Thanks.
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
May 19, 2016, 06:26:05 AM
 #1173

appreciate your work. Is there a way for a noob to compile scrypt-jane support into your latest optimized cpuminer? Thanks.

Sorry, I don't think so.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
joblo
Hero Member
*****
Offline Offline

Activity: 602


View Profile
May 19, 2016, 01:35:22 PM
 #1174

appreciate your work. Is there a way for a noob to compile scrypt-jane support into your latest optimized cpuminer? Thanks.

cpuminer-opt (see sig) supports scrypt-jane and many other algos.

Principal developer of cpuminer-opt, the optimized multi-algo CPU miner.
BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT
https://bitcointalk.org/index.php?topic=1326803.0
realgera
Newbie
*
Offline Offline

Activity: 2


View Profile
May 27, 2016, 07:55:15 AM
 #1175

Hello! I'm trying to build 64 bit binary on AIX 7.1, but configure fails with an error. Any suggestions?
config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by cpuminer configure 2.4.4, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure CFLAGS=-O3

## --------- ##
## Platform. ##
## --------- ##

hostname = srvcrp6
uname -m = 00CC01114C00
uname -r = 1
uname -s = AIX
uname -v = 7

/usr/bin/uname -p = powerpc
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = 7.1.0.0
/bin/universe          = unknown

PATH: /usr/bin
PATH: /etc
PATH: /usr/sbin
PATH: /usr/ucb
PATH: /usr/bin/X11
PATH: /sbin
PATH: /usr/java/jre/bin
PATH: /usr/java/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2336: checking build system type
configure:2350: result: powerpc-ibm-aix7.1.0.0
configure:2370: checking host system type
configure:2383: result: powerpc-ibm-aix7.1.0.0
configure:2403: checking target system type
configure:2416: result: powerpc-ibm-aix7.1.0.0
configure:2460: checking for a BSD-compatible install
configure:2528: result: ./install-sh -c
configure:2539: checking whether build environment is sane
configure:2594: result: yes
configure:2745: checking for a thread-safe mkdir -p
configure:2784: result: ./install-sh -c -d
configure:2791: checking for gawk
configure:2807: found /usr/bin/gawk
configure:2818: result: gawk
configure:2829: checking whether make sets $(MAKE)
configure:2851: result: yes
configure:2880: checking whether make supports nested variables
configure:2897: result: yes
configure:3026: checking whether to enable maintainer-specific portions of Makefiles
configure:3035: result: no
configure:3061: checking for style of include used by make
configure:3089: result: GNU
configure:3160: checking for gcc
configure:3176: found /usr/bin/gcc
configure:3187: result: gcc
configure:3416: checking for C compiler version
configure:3425: gcc --version >&5
gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3436: $? = 0
configure:3425: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/4.8.3/lto-wrapper
Target: powerpc-ibm-aix7.1.0.0
Configured with: ../gcc-4.8.3/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --enable-version-specific-runtime-libs --disable-nls --enable-decimal-floa
t=dpd --host=powerpc-ibm-aix7.1.0.0
Thread model: aix
gcc version 4.8.3 (GCC)
configure:3436: $? = 0
configure:3425: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3436: $? = 1
configure:3425: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3436: $? = 1
configure:3456: checking whether the C compiler works
configure:3478: gcc -O3   conftest.c  >&5
Assembler:
/tmp//cci5yi3I.s: line 12: Only .llong should be used for relocatable expressions.
configure:3482: $? = 1
configure:3520: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "cpuminer"
| #define PACKAGE_TARNAME "cpuminer"
| #define PACKAGE_VERSION "2.4.4"
| #define PACKAGE_STRING "cpuminer 2.4.4"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "cpuminer"
| #define VERSION "2.4.4"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3525: error: in `/usr/cpuminer/cpuminer-2.4.4':
configure:3527: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=powerpc-ibm-aix7.1.0.0
ac_cv_env_CCASFLAGS_set=''
ac_cv_env_CCASFLAGS_value=''
ac_cv_env_CCAS_set=''
ac_cv_env_CCAS_value=''
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-O3
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=powerpc-ibm-aix7.1.0.0
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=powerpc-ibm-aix7.1.0.0
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing aclocal-1.14'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
ARCH_ARM_FALSE=''
ARCH_ARM_TRUE=''
ARCH_PPC_FALSE=''
ARCH_PPC_TRUE=''
ARCH_x86_64_FALSE=''
ARCH_x86_64_TRUE=''
ARCH_x86_FALSE=''
ARCH_x86_TRUE=''
AUTOCONF='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing autoconf'
AUTOHEADER='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing autoheader'
AUTOMAKE='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing automake-1.14'
AWK='gawk'
CC='gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-O3'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
HAVE_WINDOWS_FALSE=''
HAVE_WINDOWS_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JANSSON_LIBS=''
LDFLAGS=''
LIBCURL=''
LIBCURL_CPPFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /usr/cpuminer/cpuminer-2.4.4/missing makeinfo'
MKDIR_P='./install-sh -c -d'
OBJEXT=''
PACKAGE='cpuminer'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='cpuminer'
PACKAGE_STRING='cpuminer 2.4.4'
PACKAGE_TARNAME='cpuminer'
PACKAGE_URL=''
PACKAGE_VERSION='2.4.4'
PATH_SEPARATOR=':'
PTHREAD_FLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_ASM_FALSE=''
USE_ASM_TRUE=''
VERSION='2.4.4'
WANT_JANSSON_FALSE=''
WANT_JANSSON_TRUE=''
WS2_LIBS=''
_libcurl_config=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='powerpc-ibm-aix7.1.0.0'
build_alias=''
build_cpu='powerpc'
build_os='aix7.1.0.0'
build_vendor='ibm'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='powerpc-ibm-aix7.1.0.0'
host_alias=''
host_cpu='powerpc'
host_os='aix7.1.0.0'
host_vendor='ibm'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /usr/cpuminer/cpuminer-2.4.4/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='powerpc-ibm-aix7.1.0.0'
target_alias=''
target_cpu='powerpc'
target_os='aix7.1.0.0'
target_vendor='ibm'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "cpuminer"
#define PACKAGE_TARNAME "cpuminer"
#define PACKAGE_VERSION "2.4.4"
#define PACKAGE_STRING "cpuminer 2.4.4"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "cpuminer"
#define VERSION "2.4.4"

configure: exit 77
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
May 27, 2016, 08:23:42 AM
 #1176

Hello! I'm trying to build 64 bit binary on AIX 7.1, but configure fails with an error. Any suggestions?
config.log:
Code:
configure:3456: checking whether the C compiler works
configure:3478: gcc -O3   conftest.c  >&5
Assembler:
/tmp//cci5yi3I.s: line 12: Only .llong should be used for relocatable expressions.
configure:3482: $? = 1
configure:3520: result: no

This seems relevant: http://www.hpc.cineca.it/content/i-cannot-use-gcc-compiler-even-very-simple-programs

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
realgera
Newbie
*
Offline Offline

Activity: 2


View Profile
May 27, 2016, 09:17:43 AM
 #1177

Hello! I'm trying to build 64 bit binary on AIX 7.1, but configure fails with an error. Any suggestions?
config.log:
Code:
configure:3456: checking whether the C compiler works
configure:3478: gcc -O3   conftest.c  >&5
Assembler:
/tmp//cci5yi3I.s: line 12: Only .llong should be used for relocatable expressions.
configure:3482: $? = 1
configure:3520: result: no

This seems relevant: http://www.hpc.cineca.it/content/i-cannot-use-gcc-compiler-even-very-simple-programs
Don't think so, I'm using OBJECT_MODE=64. It seems there is an incorrect gcc option in config script:
Code:
configure:3425: gcc -V >&5
gcc: error: unrecognized command line option '-V'
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
May 27, 2016, 09:38:22 AM
 #1178

Hello! I'm trying to build 64 bit binary on AIX 7.1, but configure fails with an error. Any suggestions?
config.log:
Code:
configure:3456: checking whether the C compiler works
configure:3478: gcc -O3   conftest.c  >&5
Assembler:
/tmp//cci5yi3I.s: line 12: Only .llong should be used for relocatable expressions.
configure:3482: $? = 1
configure:3520: result: no
This seems relevant: http://www.hpc.cineca.it/content/i-cannot-use-gcc-compiler-even-very-simple-programs
Don't think so, I'm using OBJECT_MODE=64.
So you've tried adding -maix64 to CFLAGS?

It seems there is an incorrect gcc option in config script:
Code:
configure:3425: gcc -V >&5
gcc: error: unrecognized command line option '-V'
I believe that is normal.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
johnjacksonbtc
Newbie
*
Offline Offline

Activity: 20


View Profile
June 10, 2016, 07:14:01 AM
 #1179

memleak still is present - 2MB per getblocktemplate request.

I must have missed this one because it only happens when long polling is enabled. Anyway, I've just pushed a fix to the git repo. Thank you again!

Could you re release binaries for download? Thanks.
pooler
Hero Member
*****
Offline Offline

Activity: 644


View Profile
June 10, 2016, 09:07:24 AM
 #1180

Version 2.4.5

This is a bugfix release to address a memory leak affecting long polling.

The source code is, as always, available at GitHub. Source tarball and binaries are available at Sourceforge.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
Pages: « 1 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 [59] 60 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!