SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Thu Nov 21, 2024 23:09
SMSTools3 Community » Help and support Bottom

[fixed in 3.1.15] Sending SMS takes long time because of filesystem sync

  This topic is locked

Page:  1

Author Post
Member
Registered:
May 2011
Location: Germany
Operating system name and version: CentOS 5.6
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: Teltonika ModemUSB/G10 GSM Modem
Interface: USB

Sending SMS with the command sendsms takes about 30 seconds. When I follow the smsd daemon with strace I get following output.



The part that takes more then 20 seconds is the sync. Why is there a fs-sync? Can I change this behavior with a config option?

Thank you.

Erwin

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
eschliske wrote
The part that takes more then 20 seconds is the sync. Why is there a fs-sync? Can I change this behavior with a config option?

There is a sync because a logfile was just written, and smsd tries to flush the data to the disk.

I have not heard before that sync caused this kind of a problem. Currently I do not have CentOS installed, so I'm unable to test this issue.

There is no configuration option for this. Perhaps you could comment out the sync(); call, it's in the file locking.c. It does not sound very good, but at least you could try. I assume that if you have lot's of SMS traffic, and multiple modems serving the same queue, you likely will have another problems in the future.

Member
Registered:
May 2011
Location: Germany
Topic owner
I replaced the sync with an fsync. Now the sending of a SMS is done in few seconds. Here my patch.



Is the fsync good enough?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
eschliske wrote
Is the fsync good enough?

It is good, and actually much better than sync, because it synchronizes just a lockfile which is required.

I will include your patch in the next version. Thanks for reporting this issue.

Member
Registered:
May 2011
Location: Germany
Topic owner
keke wrote
I will include your patch in the next version. Thanks for reporting this issue.

Great. Thank you.

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.