Giter VIP home page Giter VIP logo

Comments (4)

begetan avatar begetan commented on July 24, 2024

It looks like the main process has 7 workers which are writing independently into 7 log files. The main log is for the core processes. So it is probably optimized for the 8 cores.

My test virtual machine runs on 2 CPU cores only.

from ton.

begetan avatar begetan commented on July 24, 2024

After committing 47814dc log files became more descriptive:

/var/ton-work/log# ls -l
total 32
-rw------- 1 root root    0 Sep 10 23:14 log
-rw------- 1 root root 3294 Sep 10 23:19 log.thread1.log
-rw------- 1 root root 4647 Sep 10 23:18 log.thread2.log
-rw------- 1 root root 3724 Sep 10 23:18 log.thread3.log
-rw------- 1 root root 2519 Sep 10 23:17 log.thread4.log
-rw------- 1 root root 3212 Sep 10 23:19 log.thread5.log
-rw------- 1 root root 2065 Sep 10 23:18 log.thread6.log
-rw------- 1 root root 2340 Sep 10 23:19 log.thread7.log

So log files are produced by the the threads.

Anyway, I would interesting is 8 threads an optimal configuration for 2 cores VM? Is it possible to adjust this value?

from ton.

dsanchezseco avatar dsanchezseco commented on July 24, 2024

Yeah, there are 7 threads by default. The value can be changed using the flag -t <num> on validator-engine. (From the help)

$ ./validator-engine -h
validator or full node for TON network
-v|--verbosity<arg>     set verbosity level
-h|--help       prints_help
-C|--global-config<arg> file to read global config
-c|--local-config<arg>  file to read local config
-I|--ip<arg>    ip:port of instance
-D|--db<arg>    root for dbs
-f|--fift-dir<arg>      directory with fift scripts
-d|--daemonize  set SIGHUP
-l|--logname<arg>       log to file
-s|--state-ttl<arg>     state will be gc'd after this time (in seconds) default=3600
-b|--block-ttl<arg>     blocks will be gc'd after this time (in seconds) default=7*86400
-S|--sync-before<arg>   in initial sync download all blocks for last given seconds default=3600
-t|--threads<arg>       number of threads (default=7)
-u|--user<arg>  change user

from ton.

begetan avatar begetan commented on July 24, 2024

Close because there is no issue.

from ton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.