LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 07-19-2005, 03:22 AM   #1
ivan.tg
LQ Newbie
 
Registered: Feb 2004
Location: Yambol, BULGARIA
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 19

Rep: Reputation: 0
Question slow hard drive i/o?


hi everyone!

i'm new to freebsd... i've installed 5.4.
everything went well with system config. - the different devices etc.
BUT i just cant get the same speed as with linux on application start up... example:
on a fresh (after revoot) machine i start xmms. on linux this takes about 5 seconds while on freebsd it takes 20-30 seconds
everytime i need to load program afresh this happenes and during that time the comp. crawls

it just works much more slowly

any ideas?

i really want to make my home pc a freebsd-only, so that i don't confine myself to linux only. but with this speed problem i'll hardly ever do

***PS: the machine is OLD INDEED - 333MHz 128RAM, nevertheless it work faster on linux
 
Old 07-19-2005, 10:57 AM   #2
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: SuSE (x86), NetBSD (Sparc), Solaris (Sparc & 32-bit x86)
Posts: 278

Rep: Reputation: 30
Re: slow hard drive i/o?

Quote:
Originally posted by ivan.tg

***PS: the machine is OLD INDEED - 333MHz 128RAM, nevertheless it work faster on linux
That machine is faster than 2/3's of my machines, and I have no issue with FreeBSD being slow. More hardware information please.
 
Old 07-19-2005, 11:44 AM   #3
ivan.tg
LQ Newbie
 
Registered: Feb 2004
Location: Yambol, BULGARIA
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 19

Original Poster
Rep: Reputation: 0
Sorry for not providing this info initialy

Celeron 333MHz
128 RAM
HDD - Maxtor 20GB (ad0: 19541MB <Maxtor 2B020H1/WAH21PB0> [39703/16/63] at ata0-master UDMA33)
SiS 5513 UDMA33 controller
on board VGA SiS
NIC: RealTek 8139
sound card: Yamaha OPL-SA on

btw i'm using KDE

i could post any additional details (dmesg, kernel config)... ok?
 
Old 07-19-2005, 12:19 PM   #4
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: SuSE (x86), NetBSD (Sparc), Solaris (Sparc & 32-bit x86)
Posts: 278

Rep: Reputation: 30
128MB RAM is really on the low end. My experience though is that BSD handles low RAM machines better than Linux, but perhaps not in your case? What does "top" have to say about RAM utilization in each OS?
 
Old 07-19-2005, 05:04 PM   #5
ivan.tg
LQ Newbie
 
Registered: Feb 2004
Location: Yambol, BULGARIA
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 19

Original Poster
Rep: Reputation: 0
top's output, with kde 3.3 loaded on linux and kde3.4 loaded on freebsd with both running kosnole and konqueror file manager, my guess now is that is not just hard drive lag.

on linux

Tasks: 39 total, 1 running, 38 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.0% user, 1.6% system, 0.0% nice, 96.4% idle
Mem: 126488k total, 117968k used, 8520k free, 20344k buffers
Swap: 128516k total, 8k used, 128508k free, 58668k cached



on freebsd

50 processes: 2 running, 48 sleeping
CPU states: 16.7% user, 0.0% nice, 9.3% system, 1.2% interrupt, 72.9% idle
Mem: 69M Active, 11M Inact, 30M Wired, 4892K Cache, 22M Buf, 1708K Free
Swap: 231M Total, 27M Used, 204M Free, 11% Inuse


More timings... may call them irrelevant, but anyway

on linux KDE3.3 loads from kdm password promt to ready-to-work in 25 seconds
on freebsd (KDE3.4) same process takes well over 2 minutes!

FINALLY KInfoCenter memory page does NOT show Disk Cache, just Disk Buffer, unlike linux where there are both. Nor does it display Shared memory...
For both Disk Cache and Shared Memory reads "Not available" on freebsd
And on linux Application Data is about 40% of all Physical mem....whereas on freebsd it's about 80%
why are these not available in freebsd?
 
Old 07-20-2005, 02:49 AM   #6
ivan.tg
LQ Newbie
 
Registered: Feb 2004
Location: Yambol, BULGARIA
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 19

Original Poster
Rep: Reputation: 0
it is kernel misconfiguration,
sorry for bothering you guys

when i get back home i'll find the problem lines in kernel config. file and i'll post the result.
i hate to say it but it will turn out something stupid
 
Old 07-21-2005, 02:29 AM   #7
ivan.tg
LQ Newbie
 
Registered: Feb 2004
Location: Yambol, BULGARIA
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 19

Original Poster
Rep: Reputation: 0
Here is what happened. After a couple of times recompiling the kernel... the problem didn't disappear. Then i tried my last guess... the kernel sound system.

When i disabled it in loader.conf the system ran faster...again my "test" results:
with kernel sound loaded KDE needs > 2 min to start
without sound loaded KDE is ready in 50 sec.

could it be a kernel sound system problem specific to my machine, or it originates in KDE's artsd?

PS: when sound is enabled my sound card is properly detected and works fine.
 
Old 07-21-2005, 01:46 PM   #8
ivan.tg
LQ Newbie
 
Registered: Feb 2004
Location: Yambol, BULGARIA
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 19

Original Poster
Rep: Reputation: 0
finally: artsd is to blame!

with KDE sound system OFF (no artsd) the system works as fast as linux does.
luckily i can go without it (artsd)
 
Old 07-25-2005, 12:44 PM   #9
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 33
what about DMA, it is activated on BSD?

maybe #hdparm /dev/hdX could give you some output?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very, very slow hard drive cfdmanW Linux - Hardware 5 03-03-2005 05:33 PM
Hard drive suddenly VERY slow despite UDMA gundelgauk Linux - Hardware 4 10-03-2004 07:11 AM
Hard drive running *very* slow? Valael Linux - Hardware 5 09-21-2004 08:19 PM
External hard drive running slow Tom Cumming Linux - Hardware 0 08-19-2004 07:30 PM
Slow accessing Hard Drive tornado419 Linux From Scratch 3 07-19-2004 04:52 PM


All times are GMT -5. The time now is 08:25 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration