|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Thu Nov 21, 2024 23:09 |
This topic is locked
Page: 1
Author |
Post |
|
#1 Mon May 02, 2011 09:52, 165 months ago.
|
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
|
|
#2 Mon May 02, 2011 12:34, 165 months ago.
|
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.
|
|
#3 Mon May 02, 2011 13:53, 165 months ago.
|
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?
|
|
#4 Mon May 02, 2011 19:07, 165 months ago.
|
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.
|
|
#5 Tue May 03, 2011 07:14, 165 months ago.
|
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
Time in this board is UTC.
|
|
|
|
|
|
|