I went to look at the source of vsftpd and make a quick modification in the
code at ftpdataio.c to do the compress. the modifaction is very simple.
by adding  popen to do the fork().

the only issue  I have  is during the download, "500 OOPS child died"... I
need to do a trace. otherwise everything adds up when I un-compres the data
during the upload.     .







                John
             Summerfield
             <[EMAIL PROTECTED]                                          To
             homelinux.org>            [email protected]
                Sent by: Linux                                          cc
             on 390 Port
             <[EMAIL PROTECTED]                                     Subject
             IST.EDU>                  Re: FTP server doing compression


                06/13/2007
             06:56 PM


             Please respond to
             Linux on 390 Port
             <[EMAIL PROTECTED]
                 IST.EDU>






Eddie Chen wrote:
>   I like  to know what are the  disadvantages/advantages   of having  ftp
> server doing  the  compress  during the download and uncompress from the
> upload.
>

You know the answer to this is, as always, "it depends."

With FTP or any other transmission - you can even extend it to include
tape -, it depends on the speeds of the wire and of the CPUs.

Assuming a file will compress decently - jpeg, rpms an debs don't - then
you will find it quicker to compresss, transfer then decompress, if the
link is slow.

An extreme example, but one I have to live with, is transferring files
through my modem. It doesn't matter how slow the CPU is, compression is
worth-while.

OTOH when transferring across the LAN, compression's never worth-while,
I can transfer faster than I can compress.

It might depend on cost too; I can imagine the proud owner of a Zed
deciding there are better uses for the CPU than compressing files and
instead preferring to plan around the transfer (or deciding to delegate
the task to a desktop peecee).





--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]

Please do not reply off-list

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390





Visit our website at http://www.nyse.com

****************************************************

Note:  The information contained in this message and any attachment
to it is privileged, confidential and protected from disclosure.  If the
reader of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify the
sender immediately by replying to the message, and please delete
it from your system. Thank you.  NYSE Group, Inc.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to