LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2007, 06:42 PM   #1
Hotchips
Member
 
Registered: Nov 2006
Location: Brisbane, Australia
Distribution: RHEL4
Posts: 33

Rep: Reputation: 15
7zip hanging on rhel as 2.1 memory issue???


Hi all,

I have 2 servers, both running "Red Hat Linux Advanced Server release 2.1AS (Pensacola)" on identical hardware (DELL PowerEdge 4600 servers).

Both have the latest version of 7zip running. (p7zip_4.45)

One runs 7zip commands no problem. The other hangs on files that are roughly 1Mb or larger.

It starts to process the file - then just sits there until I force an interrupt......
7za e file.7z

7-Zip (A) 4.45 beta Copyright (c) 1999-2007 Igor Pavlov 2007-04-17
p7zip Version 4.45 (locale=en_US,Utf16=on,HugeFiles=on,4 CPUs)

Processing archive: file.7z



sits here until interrupt sent

One difference with the servers is the one that has no problem with 7zip has Oracle running and has had memory adjustments. Maybe the difference is responsible for the success vs failure.

What I would like to know is, based on the below memory settings, what command I need to run to temporarily adjust max seg size and test 7zip.

I am assuming I can change the setting, test it, and change it back if I want to. Also, if I make the change permanent, do I change /etc/sysctl.conf?? - what is the exact command?

The memory settings on the server with no problem running 7zip...
ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 1048576
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1

...and on the problem server...
ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1

If you think there is another solution, please do post it.

Thanks.
 
Old 05-26-2007, 07:54 AM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by Hotchips
What I would like to know is, based on the below memory settings, what command I need to run to temporarily adjust max seg size and test 7zip.
To change the “maximum shared memory segment size”, you’d do something like:
Code:
# sysctl kernel.shmmax=blah
(where blah is the desired number)

You also might want to try a debugger to see where the problem occurs.
 
Old 05-27-2007, 11:46 PM   #3
Hotchips
Member
 
Registered: Nov 2006
Location: Brisbane, Australia
Distribution: RHEL4
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks osor. I tried adjusting the memory settings to no avail.

I guess I need to debug. Any suggestions on a debugger to use? I have not yet had a need to get into debugging. I am fairly new to linux and still finding my feet.

It is interesting to me that at times, when interrupted, "Everything is okay" will be displayed, other times it just returns straight to prompt. Archive still in tact (not extracted) As far as I know, the only difference with the two servers is that memory setting.

It also takes two interrupts to respond (ctrl + c)
 
Old 05-28-2007, 09:54 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by Hotchips
Any suggestions on a debugger to use?
I would use gdb (though it may be daunting at first). For best results, you will need to compile p7zip with debugging symbols (or find a precompiled debugging version). If you just want to see if the application is hanging on a specific system call, strace might be the tool to use.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Winbind memory leak on RHEL 3? hob Red Hat 0 04-29-2006 11:51 AM
CentOS 3.4 [ RHEL 3 ] Wont let go the memory maxboost Linux - Software 0 02-20-2005 10:36 AM
how to mount usb flash memory on RHEL 3.0 Owen_Townsend Red Hat 2 12-19-2004 01:32 PM
System memory hanging around after kill supinlick Programming 7 08-03-2004 10:02 AM
Hanging Issue - RH 7.2 Bovinity Linux - General 2 06-25-2003 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration