public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] transfer large files via samba cause system freeze
@ 2005-09-22  3:03 Qiangning Hong
  2005-09-22  5:46 ` Heinz Sporn
  2005-09-23 22:06 ` Jerry McBride
  0 siblings, 2 replies; 11+ messages in thread
From: Qiangning Hong @ 2005-09-22  3:03 UTC (permalink / raw
  To: gentoo-user

I tried to transfer a large file (~300MB) to a windows machine from my
gentoo laptop:

# mount -t cifs //winbox/movies /mnt/samba -o iocharset=utf8,umask=0000
# exit
$ cp largefile.avi /mnt/samba

The transfer starts and eats 100% of my CPU. However, after transfered
~40MB of data, my linux system freezed: mouse point doesn't move,
keyboad doesn't response, even Ctrl-Alt-Del has no effects. The only
thing I can do is hard-reset my laptop.

If I share this file via samba server and use windows explorer on the
winbox to retrieve it, it works.

It seems something wrong with the samba client?

-- 
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)

Registered Linux User #396996
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-22  3:03 [gentoo-user] transfer large files via samba cause system freeze Qiangning Hong
@ 2005-09-22  5:46 ` Heinz Sporn
  2005-09-22  8:26   ` Qiangning Hong
  2005-09-23 22:06 ` Jerry McBride
  1 sibling, 1 reply; 11+ messages in thread
From: Heinz Sporn @ 2005-09-22  5:46 UTC (permalink / raw
  To: gentoo-user

Am Donnerstag, den 22.09.2005, 11:03 +0800 schrieb Qiangning Hong:
> I tried to transfer a large file (~300MB) to a windows machine from my
> gentoo laptop:
> 
> # mount -t cifs //winbox/movies /mnt/samba -o iocharset=utf8,umask=0000

What if you just try
mount -o username=xxx //winbox/movies /mnt/samba ?

Does this resolve to a smb type mount (instead of CIFS)? Does it work
better? Kernel options for SMB / CIFS ?

> # exit
> $ cp largefile.avi /mnt/samba
> 
> The transfer starts and eats 100% of my CPU. However, after transfered
> ~40MB of data, my linux system freezed: mouse point doesn't move,
> keyboad doesn't response, even Ctrl-Alt-Del has no effects. The only
> thing I can do is hard-reset my laptop.
> 
> If I share this file via samba server and use windows explorer on the
> winbox to retrieve it, it works.
> 
> It seems something wrong with the samba client?
> 
> -- 
> Qiangning Hong
> http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)
> 
> Registered Linux User #396996
> Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
> Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
Mit freundlichen Grüßen

Heinz Sporn

SPORN it-freelancing

Mobile:  ++43 (0)699 / 127 827 07
Email:   heinz.sporn@sporn-it.com
         heinz.sporn@utanet.at
Website: http://www.sporn-it.com
Snail:   Steyrer Str. 20
         A-4540 Bad Hall
         Austria / Europe

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-22  5:46 ` Heinz Sporn
@ 2005-09-22  8:26   ` Qiangning Hong
  2005-09-22  8:47     ` Heinz Sporn
  0 siblings, 1 reply; 11+ messages in thread
From: Qiangning Hong @ 2005-09-22  8:26 UTC (permalink / raw
  To: gentoo-user

Heinz Sporn wrote:
> Am Donnerstag, den 22.09.2005, 11:03 +0800 schrieb Qiangning Hong:
> 
>>I tried to transfer a large file (~300MB) to a windows machine from my
>>gentoo laptop:
>>
>># mount -t cifs //winbox/movies /mnt/samba -o iocharset=utf8,umask=0000
> 
> 
> What if you just try
> mount -o username=xxx //winbox/movies /mnt/samba ?
> 
> Does this resolve to a smb type mount (instead of CIFS)? Does it work
> better? Kernel options for SMB / CIFS ?

Isn't CIFS considered as a better SMBFS?

My winbox is a Chinese version windows, use smbfs will cause the
filename containing Chinese characters messed up.  When use cifs with -o
iocharset=utf8, these characters are resolved correctly.

What do you mean of "Kernal options for SMB / CIFS"?  I just build them
as modules.

-- 
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)

Registered Linux User #396996
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-22  8:26   ` Qiangning Hong
@ 2005-09-22  8:47     ` Heinz Sporn
  2005-09-23  2:26       ` Qiangning Hong
  0 siblings, 1 reply; 11+ messages in thread
From: Heinz Sporn @ 2005-09-22  8:47 UTC (permalink / raw
  To: gentoo-user

Am Donnerstag, den 22.09.2005, 16:26 +0800 schrieb Qiangning Hong:
> Heinz Sporn wrote:
> > Am Donnerstag, den 22.09.2005, 11:03 +0800 schrieb Qiangning Hong:
> > 
> >>I tried to transfer a large file (~300MB) to a windows machine from my
> >>gentoo laptop:
> >>
> >># mount -t cifs //winbox/movies /mnt/samba -o iocharset=utf8,umask=0000
> > 
> > 
> > What if you just try
> > mount -o username=xxx //winbox/movies /mnt/samba ?
> > 
> > Does this resolve to a smb type mount (instead of CIFS)? Does it work
> > better? Kernel options for SMB / CIFS ?
> 
> Isn't CIFS considered as a better SMBFS?

It's been said. Still - do you have both SMBFS and CIFS support built
into your kernel, or just CIFS? If the later is true I would include
SMBFS as well and try the same thing with good old SMB as well (you may
use both simultanously anyway).

Interessting details missing: your kernel and windoze version?

> 
> My winbox is a Chinese version windows, use smbfs will cause the
> filename containing Chinese characters messed up.  When use cifs with -o
> iocharset=utf8, these characters are resolved correctly.
> 
> What do you mean of "Kernal options for SMB / CIFS"?  I just build them
> as modules.
> 
> -- 
> Qiangning Hong
> http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)
> 
> Registered Linux User #396996
> Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
> Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
Mit freundlichen Grüßen

Heinz Sporn

SPORN it-freelancing

Mobile:  ++43 (0)699 / 127 827 07
Email:   heinz.sporn@sporn-it.com
         heinz.sporn@utanet.at
Website: http://www.sporn-it.com
Snail:   Steyrer Str. 20
         A-4540 Bad Hall
         Austria / Europe

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-22  8:47     ` Heinz Sporn
@ 2005-09-23  2:26       ` Qiangning Hong
  2005-09-23 20:03         ` Bryan Whitehead
  0 siblings, 1 reply; 11+ messages in thread
From: Qiangning Hong @ 2005-09-23  2:26 UTC (permalink / raw
  To: gentoo-user

Heinz Sporn wrote:
> Am Donnerstag, den 22.09.2005, 16:26 +0800 schrieb Qiangning Hong:
>>Isn't CIFS considered as a better SMBFS?
> 
> It's been said. Still - do you have both SMBFS and CIFS support built
> into your kernel, or just CIFS? If the later is true I would include
> SMBFS as well and try the same thing with good old SMB as well (you may
> use both simultanously anyway).

I add smbfs support in my kernel and tried (after change the filename to
an English-only one).  It works.

However, as my previous mail said, using smbfs doesn't address my
problem.  I have plenty (~100) large files to transfer, and maybe you've
guessed, they are movie files, with Chinese movie title in the
filenames.  And the movies directories on my winbox have also Chinese
characters.  If I stick in the smbfs solution, I'll have to do too many
manual filename change things.  So, I still prefer to find out what's
wrong with my cifs and fix it.

> Interessting details missing: your kernel and windoze version?

Linux r52 2.6.13-suspend2-r4 #4 Wed Sep 21 17:35:55 CST 2005 i686
Intel(R) Pentium(R) M processor 1.73GHz GenuineIntel GNU/Linux

Windows XP Professional with SP2.

-- 
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)

Registered Linux User #396996
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-23  2:26       ` Qiangning Hong
@ 2005-09-23 20:03         ` Bryan Whitehead
  2005-09-24  4:23           ` Qiangning Hong
  0 siblings, 1 reply; 11+ messages in thread
From: Bryan Whitehead @ 2005-09-23 20:03 UTC (permalink / raw
  To: gentoo-user

Can't you also use the iocharset=utf8 and codepage=utf8?

something like:
mount -t smbfs -o user=<user>,iocharset=utf8,codepage=utf8 \\server\path 
/mnt/samba

This doesn't work?

On Fri, 23 Sep 2005, Qiangning Hong wrote:

> Heinz Sporn wrote:
>> Am Donnerstag, den 22.09.2005, 16:26 +0800 schrieb Qiangning Hong:
>>> Isn't CIFS considered as a better SMBFS?
>>
>> It's been said. Still - do you have both SMBFS and CIFS support built
>> into your kernel, or just CIFS? If the later is true I would include
>> SMBFS as well and try the same thing with good old SMB as well (you may
>> use both simultanously anyway).
>
> I add smbfs support in my kernel and tried (after change the filename to
> an English-only one).  It works.
>
> However, as my previous mail said, using smbfs doesn't address my
> problem.  I have plenty (~100) large files to transfer, and maybe you've
> guessed, they are movie files, with Chinese movie title in the
> filenames.  And the movies directories on my winbox have also Chinese
> characters.  If I stick in the smbfs solution, I'll have to do too many
> manual filename change things.  So, I still prefer to find out what's
> wrong with my cifs and fix it.
>
>> Interessting details missing: your kernel and windoze version?
>
> Linux r52 2.6.13-suspend2-r4 #4 Wed Sep 21 17:35:55 CST 2005 i686
> Intel(R) Pentium(R) M processor 1.73GHz GenuineIntel GNU/Linux
>
> Windows XP Professional with SP2.
>
>

-- 
Bryan Whitehead
Email:driver@megahappy.net
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-22  3:03 [gentoo-user] transfer large files via samba cause system freeze Qiangning Hong
  2005-09-22  5:46 ` Heinz Sporn
@ 2005-09-23 22:06 ` Jerry McBride
  2005-09-24  4:26   ` Qiangning Hong
  1 sibling, 1 reply; 11+ messages in thread
From: Jerry McBride @ 2005-09-23 22:06 UTC (permalink / raw
  To: gentoo-user

On Thursday 22 September 2005 03:03 am, Qiangning Hong wrote:
> I tried to transfer a large file (~300MB) to a windows machine from my
> gentoo laptop:
>
> # mount -t cifs //winbox/movies /mnt/samba -o iocharset=utf8,umask=0000
> # exit
> $ cp largefile.avi /mnt/samba
>
> The transfer starts and eats 100% of my CPU. However, after transfered
> ~40MB of data, my linux system freezed: mouse point doesn't move,
> keyboad doesn't response, even Ctrl-Alt-Del has no effects. The only
> thing I can do is hard-reset my laptop.
>
> If I share this file via samba server and use windows explorer on the
> winbox to retrieve it, it works.
>
> It seems something wrong with the samba client?
>
> 

What version samba and do you have "use sendfile = no" in the server smb.conf 
file?

-- 

******************************************************************************
                     Registered Linux User Number 185956
              FSF Associate Member number 2340 since 05/20/2004
             Join me in chat at #linux-users on irc.freenode.net
    Buy an Xbox for $149.00, run linux on it and Microsoft loses $150.00!
     6:14pm  up 5 days,  8:39,  2 users,  load average: 0.05, 0.07, 0.08
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-23 20:03         ` Bryan Whitehead
@ 2005-09-24  4:23           ` Qiangning Hong
  2005-09-24 13:53             ` Holly Bostick
  0 siblings, 1 reply; 11+ messages in thread
From: Qiangning Hong @ 2005-09-24  4:23 UTC (permalink / raw
  To: gentoo-user

Bryan Whitehead wrote:
> Can't you also use the iocharset=utf8 and codepage=utf8?
> 
> something like:
> mount -t smbfs -o user=<user>,iocharset=utf8,codepage=utf8 \\server\path
> /mnt/samba
> 
> This doesn't work?

It doesn't work. There are "?"s in the filenames.

-- 
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)

Registered Linux User #396996
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-23 22:06 ` Jerry McBride
@ 2005-09-24  4:26   ` Qiangning Hong
  0 siblings, 0 replies; 11+ messages in thread
From: Qiangning Hong @ 2005-09-24  4:26 UTC (permalink / raw
  To: gentoo-user

Jerry McBride wrote:
> What version samba and do you have "use sendfile = no" in the server smb.conf 
> file?

samba 3.0.14a-r2.

I don't know how to set options in the windows box.  But in my gentoo
laptop, there is no "sendfile" line in /etc/samba/smb.conf.

-- 
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)

Registered Linux User #396996
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-24  4:23           ` Qiangning Hong
@ 2005-09-24 13:53             ` Holly Bostick
  2005-09-24 17:32               ` Qiangning Hong
  0 siblings, 1 reply; 11+ messages in thread
From: Holly Bostick @ 2005-09-24 13:53 UTC (permalink / raw
  To: gentoo-user

Qiangning Hong schreef:
> Bryan Whitehead wrote:
> 
>> Can't you also use the iocharset=utf8 and codepage=utf8?
>> 
>> something like: mount -t smbfs -o 
>> user=<user>,iocharset=utf8,codepage=utf8 \\server\path /mnt/samba
>> 
>> This doesn't work?
> 
> 
> It doesn't work. There are "?"s in the filenames.
> 

That's actually a good thing.... I take it you're doing this in a
terminal? Which one? Was it compiled with UTF8 support?What font is the
terminal using for display? A "?" replacing characters tends to mean (in
font-speak) that the character is 'known', but no actual character
exists to render under the selected font, or font encoding. So you kinda
get a"?" literally because the display doesn't know what to show there,
if you see what I'm getting at.

Are you able to actually use any of the files properly, even if the
filenames are not displayed correctly? Or are you unable to try that,
because you just can't read any of the filenames?

If your Winbox is Chinese, does your terminal, and the display font
chosen for the terminal support Chinese characters?

I've gotta tell you, getting UTF8 and font encoding properly set up so
that 'special characters' appear correctly across programs and terms can
be a pain in the butt, and I'm only needing it for another Latin-based
language, not any of the Asian or Cyrillic languages that use a
completely different character set. But it's well worth doing, because
it's more of a pain to not be able to read filenames or messages because
of these stupid '?'s or other 'placeholder' characters that must be used
in place of the correct ones when the system is not set up to support
the correct ones.

Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] transfer large files via samba cause system freeze
  2005-09-24 13:53             ` Holly Bostick
@ 2005-09-24 17:32               ` Qiangning Hong
  0 siblings, 0 replies; 11+ messages in thread
From: Qiangning Hong @ 2005-09-24 17:32 UTC (permalink / raw
  To: gentoo-user

Holly Bostick wrote:
> Qiangning Hong schreef:
> 
>>Bryan Whitehead wrote:
>>
>>
>>>Can't you also use the iocharset=utf8 and codepage=utf8?
>>>
>>>something like: mount -t smbfs -o 
>>>user=<user>,iocharset=utf8,codepage=utf8 \\server\path /mnt/samba
>>>
>>>This doesn't work?
>>
>>
>>It doesn't work. There are "?"s in the filenames.
>>
> 
> 
> That's actually a good thing.... I take it you're doing this in a
> terminal? Which one? Was it compiled with UTF8 support?What font is the
> terminal using for display? A "?" replacing characters tends to mean (in
> font-speak) that the character is 'known', but no actual character
> exists to render under the selected font, or font encoding. So you kinda
> get a"?" literally because the display doesn't know what to show there,
> if you see what I'm getting at.

My gentoo system's locale is set to en_US.UTF8 and my
xfce-extra/terminal is fully support UTF-8 encoding.  As my previous
post says, I can see the Chinese filenames using CIFS with the following
command switches:

# mount -t cifs //winbox/movies /mnt/samba -o iocharset=utf8

But if I mount the path using smbfs, even specified
iocharset=utf8,codepage=utf8, the filename is shown incorrectly.  I
don't think it's because of my terminal encoding setting.

-- 
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)

Registered Linux User #396996
Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-09-24 17:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-22  3:03 [gentoo-user] transfer large files via samba cause system freeze Qiangning Hong
2005-09-22  5:46 ` Heinz Sporn
2005-09-22  8:26   ` Qiangning Hong
2005-09-22  8:47     ` Heinz Sporn
2005-09-23  2:26       ` Qiangning Hong
2005-09-23 20:03         ` Bryan Whitehead
2005-09-24  4:23           ` Qiangning Hong
2005-09-24 13:53             ` Holly Bostick
2005-09-24 17:32               ` Qiangning Hong
2005-09-23 22:06 ` Jerry McBride
2005-09-24  4:26   ` Qiangning Hong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox