DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th April 2013
Mako_Elite Mako_Elite is offline
BSD_ROCKS
 
Join Date: Nov 2010
Posts: 39
Thanked 0 Times in 0 Posts
Default File transfer speed

Hello,
I am running OpenBSD 5.2 AMD64 (release) on
Thinkpad T61p ...Intel Core 2 Duo 2.4 Ghz, 4GB Ram.

OpenBSD 5.2 runs great on this machine. I love it. Only thing I noticed that file copying or transferring from sdcard or usb stick to hard drive is much slower compare to running FreeBSD, Linux or Windows.
Is that due to the encryption?

Here is attached dmesg.
Attached Files
File Type: txt dmesg.txt (13.6 KB, 17 views)
Reply With Quote
  #2   (View Single Post)  
Old 7th April 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,658
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by Mako_Elite View Post
Is that due to the encryption?....Here is attached dmesg.
What encryption?

This particular dmesg output was from your initial installation (RAMDISK_CD kernel) and then your first boot only (GENERIC.MP kernel), and does not show any encryption hardware, nor any use of the softraid(4) CRYPTO discipline.

---

The dmesg shows USB connectivity hardware with both USB 1.x and USB 2.0, via uhci(4) and ehci(4) drivers. But there is no USB mass storage device attachment in this particular dmesg.

--

The dmesg shows attachment of a 16GB SD card via the sdmmc(4) driver, but does not show any issues with it.

---

The dmesg shows a fatal firmware error for your Intel Wireless driver, iwn(4). Look in /etc/firmware for iwn-* files; if none are seen, firmware has not been installed. This appears to be the device's only NIC. If that's the case, fw_update(1) will not be usable and you will need to obtain the firmware manually from http://firmware.openbsd.org/firmware...are-5.6.p0.tgz and install it using pkg_add(1).

Last edited by jggimi; 7th April 2013 at 11:16 PM. Reason: clarity
Reply With Quote
  #3   (View Single Post)  
Old 7th April 2013
Mako_Elite Mako_Elite is offline
BSD_ROCKS
 
Join Date: Nov 2010
Posts: 39
Thanked 0 Times in 0 Posts
Default

Quote:
The dmesg shows attachment of a 16GB SD card via the sdmmc(4) driver, but does not show any issues with it.
.

That is my point. Why is transfer speed from this sdcard or even usb stick much
slower compare other operating systems used on this same laptop.
I am not complaining, just curious why.

Quote:
The dmesg shows a fatal firmware error for your Intel Wireless driver, iwn(4). Look in /etc/firmware for iwn-* files; if none are seen, firmware has not been installed. This appears to be the device's only NIC. If that's the case, fw_update(1) will not be usable and you will need to obtain the firmware manually from http://firmware.openbsd.org/firmware...are-5.6.p0.tgz and install it using pkg_add(1).
My wifi works great. First thing that I installed was iwn-firmware-5.6p0.tgz.

here is dmesg after reboot.

How you clear dmesg log on OpenBSD ??. Can't find info anywhere for it.
Reply With Quote
  #4   (View Single Post)  
Old 7th April 2013
Mako_Elite Mako_Elite is offline
BSD_ROCKS
 
Join Date: Nov 2010
Posts: 39
Thanked 0 Times in 0 Posts
Default

Forget to attach dmesg

here is
Attached Files
File Type: txt dmesg.txt (20.7 KB, 4 views)
Reply With Quote
  #5   (View Single Post)  
Old 8th April 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,876
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Mako_Elite View Post
How you clear dmesg log on OpenBSD ??.
A copy of dmesg(8) output is saved to /var/run/dmesg.boot at boot. No option is provided to "clear" it.

dmesg(8) output is implemented in a circular buffer, so once the buffer is full, the oldest output is overwritten.
Reply With Quote
  #6   (View Single Post)  
Old 8th April 2013
Mako_Elite Mako_Elite is offline
BSD_ROCKS
 
Join Date: Nov 2010
Posts: 39
Thanked 0 Times in 0 Posts
Default

ocicat
Thanks for the info.
I found that this works on FreeBSD to clear dmseg log

sudo sysctl kern.msgbuf_clear=1
Reply With Quote
  #7   (View Single Post)  
Old 8th April 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,658
Thanked 214 Times in 189 Posts
Default

Quote:
Originally Posted by Mako_Elite View Post
...or even usb stick...
A USB stick has not has not been attached since installation, according to your dmesg.

A quick look through misc@ and tech@ archives for any discussion of the sdmmc driver or your Intel 82801H I/O controller found no one else reporting a performance issue.

You might consider posting your question to the misc@ mailing list. If so, please read http://www.openbsd.org/mail.html before posting -- your Email must be plain text, trimmed to less than 80 character lines, without any attachments, and should include your dmesg in-line. You may elect to trim it to the point of the most recent boot, for ease of review. If you wish assistance with USB performance, be sure your dmesg includes a history of USB stick attachment.

Last edited by jggimi; 8th April 2013 at 01:23 AM. Reason: clarity
Reply With Quote
  #8   (View Single Post)  
Old 8th April 2013
Mako_Elite Mako_Elite is offline
BSD_ROCKS
 
Join Date: Nov 2010
Posts: 39
Thanked 0 Times in 0 Posts
Default

jggimi
Thanks for the info on the mailing list. I will try that.
I have not use USB stick on this install, but have used in the past on same machine with same OpenBSD 5.2 AMD64 (release)

Just for the info to copy files (around 180 MB) form sdcard to my HD takes about 40 - 45 seconds on OpenBSD and about 10 -12 seconds on FreeBSD, Linux, Windows...strange. I have not timed it with a stopwatch but est. times are pretty close. There is a noticeable difference.

Side note : Absolute OpenBSD (2nd edition) is coming out soon (hopefully)..
paperback only, I am pre-ordering it and also pre-ordering OpenBSD 5.3 official discs set.

thank again
Reply With Quote
  #9   (View Single Post)  
Old 8th April 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,658
Thanked 214 Times in 189 Posts
Default

Do check to ensure your FFS filesystems are configured with soft updates. Without, which is the default, write functions will be significantly slower.

(It's a default not to have them enabled only because there are some architectures that cannot use them.)
Reply With Quote
Old 8th April 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,876
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Mako_Elite View Post
I found that this works on FreeBSD to clear dmseg log

sudo sysctl kern.msgbuf_clear=1
I do not see this mentioned in the sysctl(8) manpage; I don't suspect this FreeBSD functionality has been ported.
Reply With Quote
Old 8th April 2013
Mako_Elite Mako_Elite is offline
BSD_ROCKS
 
Join Date: Nov 2010
Posts: 39
Thanked 0 Times in 0 Posts
Default

jggimi
Thanks again for your help. I will try the soft updates later today. I will post if it made the difference.


ocicat
here is the link for the trick.

http://freebsdhints.blogspot.com/201...n-freebsd.html

I have not tried it. I will install FreeBSD on my Thinkpad T23 and see if it works. It is not important if it works or not ...just curiosity.
Reply With Quote
Old 8th April 2013
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 556
Thanked 14 Times in 13 Posts
Default

Quote:
Originally Posted by Mako_Elite View Post
I have not timed it with a stopwatch but est. times are pretty close.
time(1) is your friend.
Reply With Quote
Old 9th April 2013
Mako_Elite Mako_Elite is offline
BSD_ROCKS
 
Join Date: Nov 2010
Posts: 39
Thanked 0 Times in 0 Posts
Default

IdOp
Thanks for the "time" command trick

Well ,,,,,it took 1m24s to copy 153 MB size folder from sdcard to my home folder on hard drive

jggimi
I did like you suggested to turn on "soft updates" I did modify /etc/fstab to add softdep. It did not make any difference.

I am attaching copy of my fstab and output "mount' command.
Attached Files
File Type: txt fstab.txt (520 Bytes, 14 views)
File Type: txt mount.txt (583 Bytes, 10 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware Deutsche Telekom shatters data-transfer speed record J65nko News 0 8th March 2012 01:36 AM
Huge FTP transfer file fragmentation problem under Windows eakinasila Other OS 2 13th December 2009 02:50 PM
transfer rate zomo OpenBSD General 7 26th January 2009 03:00 AM
Have problem transfer large file bigger 1GB bsdme2 FreeBSD General 9 14th January 2009 05:49 AM
Local transfer is slow. maurobottone OpenBSD General 1 10th January 2009 02:12 PM


All times are GMT. The time now is 06:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick