Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

'cp' keeps getting stuck...

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
22 posts • Page 1 of 1
Author
Message
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

'cp' keeps getting stuck...

  • Quote

Post by Utoxin » Wed Jun 12, 2002 9:30 pm

Several times in the last couple days, when copying things as root, the cp process has hung, and the process refuses to die, even when killed with a -9. Eventually, the process dies on it's own, but it takes forever.

My filesystem is XFS, and I'm running with gcc3.1. Anyone have any ideas?
Top
pjp
Administrator
Administrator
User avatar
Posts: 20708
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Wed Jun 12, 2002 9:32 pm

What are you trying to copy... how large are the files?
Quis separabit? Quo animo?
Top
lx
Veteran
Veteran
User avatar
Posts: 1012
Joined: Tue May 28, 2002 8:19 am
Location: Netherlands

  • Quote

Post by lx » Wed Jun 12, 2002 9:40 pm

Well that's one of the reasons I stopped using XFS. Used it on some partitions, and I found out that copying a large file (670Mb), from one partition to another hung the system/cp. Well didn't really fix it, just dumped it for ReiserFS.

Good Luck, lX
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Wed Jun 12, 2002 9:43 pm

Well, the one today is only 21 megs, and the copy process has used up half an hour of processor time so far. Total, it's been running for an hour.
Top
lx
Veteran
Veteran
User avatar
Posts: 1012
Joined: Tue May 28, 2002 8:19 am
Location: Netherlands

  • Quote

Post by lx » Wed Jun 12, 2002 10:00 pm

Utoxin wrote:Well, the one today is only 21 megs, and the copy process has used up half an hour of processor time so far. Total, it's been running for an hour.
Well I wasn't that patient (xfs was probably in a loop) I just did CTRL+C and did another cp and it worked. I concluded to dump Xfs.

Cya lX.
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Wed Jun 12, 2002 10:05 pm

I'd do that, but I've got too much time invested in this system to rebuild it.

Anyone have any ideas why this happens, or how to fix it?
Top
klieber
Bodhisattva
Bodhisattva
User avatar
Posts: 3657
Joined: Wed Apr 17, 2002 4:48 pm
Location: San Francisco, CA
Contact:
Contact klieber
Website

  • Quote

Post by klieber » Wed Jun 12, 2002 10:52 pm

You say it hangs when copying stuff as root. Does it work fine when copying stuff as a normal user?

Also, I seriously doubt this is the problem, but make sure you have DMA enabled on the device. (hdparm -d /dev/<your partition>)

--kurt
The problem with political jokes is that they get elected
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Thu Jun 13, 2002 12:04 am

klieber wrote:You say it hangs when copying stuff as root. Does it work fine when copying stuff as a normal user?

Also, I seriously doubt this is the problem, but make sure you have DMA enabled on the device. (hdparm -d /dev/<your partition>)

--kurt
So far, I haven't seen it hang while running as a normal user.

And yes, DMA is enabled.
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Thu Jun 13, 2002 12:54 am

Well, I eventually got the thread to die, and started the gcc emerge again (It's what was running when it locked up last.) And lo-and-behold, it locked up on exactly the same file copy the second time. This to me sounds like a bug of somekind in XFS itself. Where would I go to report XFS bugs?
Top
pjp
Administrator
Administrator
User avatar
Posts: 20708
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Thu Jun 13, 2002 1:47 am

Is it just this one file? Can you try another file of similar size and see if it locks up?
May sound weird, but I had a file one time that crashed a Novell file server whenever
I tried to open it. At the time, we didn't know this, but it was eventually discovered
that it was this one file. After recreating the file with essentially the same contents,
the problem never reoccurred.
Quis separabit? Quo animo?
Top
jtanner
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Thu May 23, 2002 7:40 pm
Location: Atlanta, GA

  • Quote

Post by jtanner » Thu Jun 13, 2002 1:53 am

Just to make sure: Neither the source nor destination is on a network mounted filesystem (nfs, samba, etc) or on removable media, right?

Jim
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Thu Jun 13, 2002 2:01 am

I let it run this time, and it eventually made it through that file. And one of the next files was twice that size, and it's hanging there too. So it's something to do with large files. (Where large seems to mean >~20MB)

And no, it's not over the network or anything. It's all on the same hard disk.
Top
jtanner
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Thu May 23, 2002 7:40 pm
Location: Atlanta, GA

  • Quote

Post by jtanner » Thu Jun 13, 2002 2:28 am

Darn, I thought this was going to be easy! ;-)

How full is your disk? Any issues/info with XFS and GCC 3.1?

Well, when kill -9 fails to destroy a process, it's because it's blocking in the kernel (duh). Could this be a tunable parameter in XFS? I've never used it, but I seem to remember reading that there are a bunch of tunable parameters that can make a big difference performance-wise.

Isn't XFS supposed to be GOOD with large files? :roll:

Jim
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Thu Jun 13, 2002 2:33 am

Disk has gigs and gigs of space left.

There's no specific issues with GCC3.1, but they did say they didn't gauruntee it to work. I'm beginning to suspect that's at the root of the problem.

And there's not much on XFS in the kernel config. Mostly quota stuff. Which I have turned off.
Top
pjp
Administrator
Administrator
User avatar
Posts: 20708
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Thu Jun 13, 2002 2:36 am

I recall an fstab setting we used for Solaris that was related to large files, but I don't recall what it was. Any one know if this could be similar?
Quis separabit? Quo animo?
Top
jtanner
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Thu May 23, 2002 7:40 pm
Location: Atlanta, GA

  • Quote

Post by jtanner » Thu Jun 13, 2002 2:42 am

I know this sucks, but....maybe try to recompile with GCC 2.95.3, and see what happens. You would just have to recompile the kernel and the tools, right?

Jim
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Thu Jun 13, 2002 2:45 am

I'd also have to compile gcc 2.95. Wanna guess how long that'd take in my system's current condition? ;)
Top
jtanner
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 121
Joined: Thu May 23, 2002 7:40 pm
Location: Atlanta, GA

  • Quote

Post by jtanner » Thu Jun 13, 2002 2:51 am

Ummm....no. :D

Precompiled binaries, maybe? Besides, it beats having to reformat your drive...

If you have a spare disk sitting around, maybe set that up as ext2/3 and use it to build the compiler, at least.

Jim
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Thu Jun 13, 2002 9:26 pm

Well, I finally finished the upgrade to the latest gcc3, and did an mrproper compile of my kernel, and things seem to have improved. I'll let everyone know if I have any more problems.
Top
lx
Veteran
Veteran
User avatar
Posts: 1012
Joined: Tue May 28, 2002 8:19 am
Location: Netherlands

  • Quote

Post by lx » Thu Jun 13, 2002 9:49 pm

I remember having the same problems with Xfs (as I stated in the earlier post) also I got error with the preempt patch + xfs. Some pre-empt count wasn't zero after finishing some command (cp / something else), so I just dumped it, that's the kind of guy I am..... :wink: . Well I want a stable and reliable filesystem, not even one cp instruction may hang..... Are you getting the pre-empt count error.

Cya lX.
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Top
Utoxin
Guru
Guru
User avatar
Posts: 413
Joined: Fri Apr 19, 2002 9:16 pm
Location: American Fork, UT

  • Quote

Post by Utoxin » Thu Jun 13, 2002 10:12 pm

Preempt count is /rarely/ 0. It's not an error. It just means the kernel let something else take over the processor while it was running.
Top
mark
Tux's lil' helper
Tux's lil' helper
Posts: 119
Joined: Tue Jun 04, 2002 9:46 am

I had probs with cp -p and xfs

  • Quote

Post by mark » Sat Jun 15, 2002 2:14 pm

Its probably not related but you never know. When I had ACL in my use variables and compiled fileutils I would subsequently get error messages with cp -p. This has been reported to xfs who are putting some changes in cvs. They are also liasing with fileutils maintainers and the maintainers of a gentoo fileutils patch to try to find the route cause.

If your not using acl's you could see if use=ACL is set and disable it if it is. Then re emerge fileutils. I am not running gcc3 and my symptoms werent the same but it could be worth a try.

Mark
Regards

Mark
Top
Post Reply

22 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy