Comments (4)
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.
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.
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.
Close because there is no issue.
from ton.
Related Issues (20)
- unicode symbol? HOT 5
- accidentally
- accidentally HOT 1
- crypto/block/transaction.cpp HOT 1
- get_thread_id returns an id that exceeds max_thread_count
- Assertion in ThreadLocalStorage::thread_local_node HOT 1
- https://github.com/toncenter/examples/blob/main/deposits-jettons.js#L1-L16
- Typo in block.tlb
- couldn't sync the block properly. HOT 2
- Stdlib update proposal
- +
- WASM version of FunC chokes on large enough contracts
- Expose prometheus-compatible validator metrics HOT 2
- Same UQD1FRXPKFNFXRgmR7JZatrDWUMHFLU7kzzRrM7AiQaYrlsD
- Account random seed calculation has UB HOT 3
- [Testnet] Cannot start the archive node
- Update README
- mainnet fullnode not sync, validator-engine keep crashing
- [adnl-ext-server.cpp:64][!inconn] failed to init crypto: [Error : 0 : ]
- Cannot load Fift binary file on MAC OS ARM M1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ton.