Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SCP & out of memory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Buge
n00b
n00b


Joined: 29 Feb 2004
Posts: 60
Location: Bern, Switzerland

PostPosted: Mon Apr 26, 2004 2:38 pm    Post subject: SCP & out of memory Reply with quote

A friends is attempting to upload a file by scp to my webserver which is larger than the total available memory (ram + swap) on the machine. At some point in the upload process he receives an out of memory exception of some kind and the upload terminates.
I assume this means, that scp attempts to read in the entire file to memory first before writing it out to disk.
Is there any way to compensate for this? i.e. preferably that the file is written directly to disk.

Thanks in advance,
Buge
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon Apr 26, 2004 2:43 pm    Post subject: Re: SCP & out of memory Reply with quote

Buge wrote:
A friends is attempting to upload a file by scp to my webserver which is larger than the total available memory (ram + swap) on the machine. At some point in the upload process he receives an out of memory exception of some kind and the upload terminates.
I assume this means, that scp attempts to read in the entire file to memory first before writing it out to disk.

I seriously doubt that this is the intended mode of operation.
You should start by debugging the copy by running ssh and/or scp in verbose(more verbose) mode or cranking up the logging level for either.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum