Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Linux,turned on compression function,when the first file reaches the storage limit, the size of the second file is always 0, and storage can not continues. #644

Open
hush-soul opened this issue Jun 25, 2024 · 6 comments

Comments

@hush-soul
Copy link

I find a same issue with #540,Reply has been resolved at #571.
Checkout code has been updated but I still have this problem.

log_002_20240625-165658.dlt.gz :The size of this file is always 0
image

dlt.conf : Modify only this item
OfflineLogstorageMaxDevices = 1

dlt_logstorage.conf:
[FILTER1]
LogAppName=.*
ContextName=.*
LogLevel=DLT_LOG_VERBOSE
File=text
FileSize=10000
NOFiles=10
EcuID=ECU1

[FILTER2]
LogAppName=.*
ContextName=.*
LogLevel=DLT_LOG_VERBOSE
File=log
FileSize=50000
NOFiles=5
EcuID=ECU1
GzipCompression=on

startup parameters:
/home/jyang/dlt-daemo/dlt-daemon-master/build/src/daemon/dlt-daemon -d -c /home/jyang/etc/dlt.conf
/home/jyang/dlt-daemo/dlt-daemon-master/build/src/console/logstorage/dlt-logstorage-ctrl -c 1 -C /home/jyang/etc/dlt.conf -p /home/jyang/etc

Looking forward to your reply, thank you

@hush-soul
Copy link
Author

IF i set SyncBehavior=ON_SPECIFIC_SIZE, i can solve this problem.
But i want to use SyncBehavior=ON_MSG

[FILTER1]
LogAppName=.*
ContextName=.*
LogLevel=DLT_LOG_VERBOSE
File=text
FileSize=10000
NOFiles=10
EcuID=ECU1

[FILTER2]
LogAppName=.*
ContextName=.*
LogLevel=DLT_LOG_VERBOSE
File=log
FileSize=50000
NOFiles=5
EcuID=ECU1
SyncBehavior=ON_SPECIFIC_SIZE
SpecificSize=200
GzipCompression=on

@hush-soul
Copy link
Author

When I enter the command again, we can continue to store

/home/jyang/dlt-daemo/dlt-daemon-master/build/src/console/logstorage/dlt-logstorage-ctrl -c 1 -C /home/jyang/etc/dlt.conf -p /home/jyang/etc

But when the file reaches the storage limit, the next file will always become 0

image

@minminlittleshrimp
Copy link
Collaborator

Hello @hush-soul
Same issue encountered here #624
Sadly I am so busy with internal dlt maintaining tasks and now not have much time to investigate this feature.
It is great if you can contribute a fix in PR and we can review and test for you.
Regards

@hush-soul
Copy link
Author

Hello @hush-soul Same issue encountered here #624 Sadly I am so busy with internal dlt maintaining tasks and now not have much time to investigate this feature. It is great if you can contribute a fix in PR and we can review and test for you. Regards

thanks,I'm not sure this is not the same problem with #624,I might try to solve

@minminlittleshrimp
Copy link
Collaborator

How about Linux, does the version kept latest @hush-soul ?

@hush-soul
Copy link
Author

How about Linux, does the version kept latest @hush-soul ?

linux is the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants