ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Reads and writes to the disk array in a few programs are intense in a few report distribution programs we have. These slow the programs to a crawl. I am trying look for ways to avoid as many as possible and there are enough ftp scripts in the program to make a difference. The more I can avoid them, the faster the programs will run.
These are existing programs in a body of code we are porting in October. It has to work now, be vetted and stable before we port the DB and ERP to Linux. Curl won't work as these are dedicated ftp servers, there's no html or even web access. All internal. We do not have libftp.
What I am trying to do is consolidate about 120 program so the port will go smoothly and not crash anywhere. ftp is the latest in a series of command line functions I write consolidation code. We has say 50 calls to ftp throughout our system. I am write a one-call-for-all subroutine. so if we have issues, we only need to fix the subroutine, not all 50 calls. But I am also working on performance improvement. That's why I posted about a non-script, straight feed into ftp. It would about a 100k reads and write, read and deletes actions a day.
Last edited by Scott Johnston; 08-25-2015 at 12:27 PM.
Are you using some programming language or script language or any programming environment? (I could use clairvoyance/legilimency if it weren't illegal in my country.)
Are you using some programming language or script language or any programming environment? (I could use clairvoyance/legilimency if it weren't illegal in my country.)
We with with something you have never heard of. Universe Basic as part the Rocket Software's US package. It's support it's Multi-Value DB. Something else I'm sure you haven't heard of.
@OP: Cool. Then how do you expect anyone to give you advice? Nonetheless, my memories come back: you're the guy migrating from AIX to RedHat Linux.
Anyways, if you call (fork+exec) /usr/bin/ftp to transfer a file, it will be slow. Not because the commands to the program come from a file, but because fork and exec are slow. Also network traffic is slow. Reading a few lines (the commands) from a text-file isn't slow.
@OP: Cool. Then how do you expect anyone to give you advice? Nonetheless, my memories come back: you're the guy migrating from AIX to RedHat Linux.
Anyways, if you call (fork+exec) /usr/bin/ftp to transfer a file, it will be slow. Not because the commands to the program come from a file, but because fork and exec are slow. Also network traffic is slow. Reading a few lines (the commands) from a text-file isn't slow.
That's an interest idea. A ram disk would do the trick. I'm just not sure we even have the capabilities or if our DB coding system could handle one.
I'll ask the admin.
My impression is that the DB would require a path or a similar structure. When you create a RAM disk, it becomes a path, and you can make a link to it if you require a certain structure or to need it to appear as if it were within the hierarchy of an existing physical disk tree.
I guess you'll have to evaluate that with your team.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.