Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Performance#977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
matthieu-c-tagheuer wants to merge4 commits intolittlefs-project:master
base:master
Choose a base branch
Loading
frommatthieu-c-tagheuer:performance

Conversation

@matthieu-c-tagheuer

No description provided.

@geky-bot
Copy link
Collaborator

Tests passed ✓, Code: 17072 B (+0.0%), Stack: 1440 B (+0.0%), Structs: 812 B (+0.0%)
CodeStackStructsCoverage
Default17072 B (+0.0%)1440 B (+0.0%)812 B (+0.0%)Lines2385/2565 lines (-0.0%)
Readonly6194 B (+0.0%)448 B (+0.0%)812 B (+0.0%)Branches1245/1584 branches (+0.0%)
Threadsafe17932 B (+0.0%)1440 B (+0.0%)820 B (+0.0%)Benchmarks
Multiversion17132 B (+0.0%)1440 B (+0.0%)816 B (+0.0%)Readed29442062634 B (+0.2%)
Migrate18768 B (+0.0%)1744 B (+0.0%)816 B (+0.0%)Proged1482874766 B (+0.0%)
Error-asserts17756 B (+0.0%)1432 B (+0.0%)812 B (+0.0%)Erased1568888832 B (+0.0%)

Can be enabled with LFS_CACHE_TRACEit will output information with LFS_DEBUG
cache trace show lots of possible caching in lfs_dir_traversecache recache for block 835 number 4938 line=1683cache recache for block 882 number 4938 line=1683cache recache for block 930 number 4938 line=1683cache recache for block 978 number 4938 line=1683testconfig    .read_size = 4,    .prog_size = 16,    .block_size = 4096,    .block_count = (8*1024),    .cache_size = 1024,    .metadata_max = 1024,        for (int i = 0; i <= 1000; i++) {                char test_path[32];                if (i > 100) {                        sprintf(test_path, "testdir/test%d", i-100);                        err = lfs_remove(&lfs, test_path);                }                sprintf(test_path, "testdir/test%d", i);                uint32_t prng = i;                lfs_size_t size = 4096 + (test_prng(&prng) & 3);                lfs_file_t file;                err = lfs_file_open(&lfs, &file, test_path,                                LFS_O_WRONLY | LFS_O_CREAT | LFS_O_TRUNC);                lfs_ssize_t res = lfs_file_write(&lfs, &file, chunk, size);                err = lfs_file_close(&lfs, &file);        }before patchtop read operation (number of flash read size, number of flash op)106060, 16976,106060, 16976,106560, 19645,107084, 16977,108820, 17624,total read/writetotal read=26174188 B write=4287328 Btotal num read=1445383 op write=7732 opafter patch15044, 4115044, 4115044, 4115044, 4116068, 42,total read=18809040 B write=4287328 Btotal num read=49477 op write=7732 op
cache trace show possible caching in lfs_dir_getslicecache recache for block 83 number 23 line=790cache recache for block 881 number 23 line=790cache recache for block 929 number 23 line=790cache recache for block 977 number 23 line=790cache recache for block 128 number 24 line=790For the same test than previous patchbefore patchtop read operation (number of flash read size, number of flash op)15044, 4115044, 4115044, 4115044, 4116068, 42total read/writetotal read=18809040 B write=4287328 Btotal num read=49477 op write=7732 opafter patchtop read operation (number of flash read size, number of flash op)15044, 4115044, 4115044, 4115044, 4116068, 42total read/writetotal read=18852728 B write=4287328 Btotal num read=45678 op write=7732 opcache recache for block 882 number 2 line=998cache recache for block 911 number 2 line=998cache recache for block 930 number 2 line=998cache recache for block 959 number 2 line=998cache recache for block 978 number 2 line=998
@geky-bot
Copy link
Collaborator

Tests passed ✓, Code: 17256 B (+1.1%), Stack: 1480 B (+2.8%), Structs: 812 B (+0.0%)
CodeStackStructsCoverage
Default17256 B (+1.1%)1480 B (+2.8%)812 B (+0.0%)Lines2412/2593 lines (-0.0%)
Readonly6274 B (+1.3%)456 B (+1.8%)812 B (+0.0%)Branches1261/1604 branches (+0.0%)
Threadsafe18116 B (+1.1%)1480 B (+2.8%)820 B (+0.0%)Benchmarks
Multiversion17320 B (+1.1%)1480 B (+2.8%)816 B (+0.0%)Readed29448406163 B (+0.3%)
Migrate18960 B (+1.1%)1760 B (+0.9%)816 B (+0.0%)Proged1482874766 B (+0.0%)
Error-asserts17968 B (+1.2%)1480 B (+3.4%)812 B (+0.0%)Erased1568888832 B (+0.0%)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@matthieu-c-tagheuer@geky-bot@geky

[8]ページ先頭

©2009-2025 Movatter.jp