LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2009, 12:38 PM   #1
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Rep: Reputation: 37
bad response from system


hello friends,

my bash shell is reacting unusually all these days.
i dont know why
when ever i press tab for auto completion the application(the shell) hangs.
i have to close it to start it again.

even my machine has become very slow these days

can anybody fix the problem
 
Old 09-25-2009, 07:15 PM   #2
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint Debian "Betsy" Windows 10
Posts: 446

Rep: Reputation: 33
I suspect you have been hacked. Although as a temporary measure unplugging and replugging USB devices may help. Seriously, use another computer to download security programs and reinstall.
 
Old 09-28-2009, 04:24 AM   #3
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by mazinoz View Post
I suspect you have been hacked. Although as a temporary measure unplugging and replugging USB devices may help. Seriously, use another computer to download security programs and reinstall.

can you be more clear.......
 
Old 09-28-2009, 05:11 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I sometime have a similar behave that auto completion hangs when I'm doing high I/O intensive task. Namely downloading files to harddisk.
Reason for this is that the autocompletion looks up the possible names from disk....

Maybe see if it just takes some time to have the autocompletion or if it realy hangs forever.
Unplug the USB devices might do something. Also you could try if it just happens on certain directories or for every dir.
 
Old 09-29-2009, 12:40 AM   #5
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by zhjim View Post
I sometime have a similar behave that auto completion hangs when I'm doing high I/O intensive task. Namely downloading files to harddisk.
auto completion hangs even when no such task is performed

Quote:
Maybe see if it just takes some time to have the autocompletion or if it realy hangs forever.
i shall give this a try.

Quote:
Also you could try if it just happens on certain directories or for every dir.
well for commands(like halt, top, ps - to say, for all commands), hardly there's any problem.......it happens that when any directory is involved it hangs....
 
Old 09-29-2009, 12:44 AM   #6
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Original Poster
Rep: Reputation: 37
i have also noticed that my computer has become very slow.

it takes a lot of time to start....

commands like yum takes a lot of time to produce the desired output...

i don't understand the thing. it was not like this before.
 
Old 09-29-2009, 02:30 AM   #7
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by lemon09 View Post
i have also noticed that my computer has become very slow.

it takes a lot of time to start....

commands like yum takes a lot of time to produce the desired output...

i don't understand the thing. it was not like this before.
Your system might be compromised, or it might be out of HDD space or RAM, or it might be running mostly in swap, or it is desperately trying to do something it cannot complete.

Try running "top" and see what is going on:

Code:
$ top
This might show a process hogging system resources.

Or check the state of your drives:

Code:
$ df
Or of memory:

Code:
$ free
 
Old 09-30-2009, 02:06 AM   #8
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Original Poster
Rep: Reputation: 37
first of all thanks to all of you for your pains:

Quote:
Your system might be compromised, or it might be out of HDD space or RAM, or it might be running mostly in swap, or it is desperately trying to do something it cannot complete.
well it might be helpful to provide you with the proper configuration of my pc.
i have:
Code:
1. CPU -> AMD Phenom X3 (tri core)
2. RAM -> 4 GB
3. HDD -> 500 GB
i don't think i deal with such complicated things that would require a system with higher configuration.

yet i gave a try:

the total CPU usage didn't exceed 50%.

swap space usage is 0
Code:
$ free
             total       used       free     shared    buffers     cached
Mem:       2984020     962772    2021248          0      25720     450444
-/+ buffers/cache:     486608    2497412
Swap:      5046264          0    5046264


$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     100791728   6506336  89165392   7% /
/dev/mapper/VolGroup00-LogVol02
                     122724388   4376248 112114028   4% /home
/dev/sda8               194442     20826    163577  12% /boot
tmpfs                  1492008       336   1491672   1% /dev/shm
 
Old 09-30-2009, 03:38 AM   #9
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Original Poster
Rep: Reputation: 37
recently i noticed that even when i press "ha" for auto-completion it hangs.....

i really cant make this out..........

please help me out.
 
Old 09-30-2009, 06:43 AM   #10
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
please check on the throughput of the disk

Code:
hdparm -tT /dev/sda
substitute /dev/sda with your harddrive.
Notherthing to check on is with vmstat

Code:
vmstat 1
Have this run in a terminal by its own and then try autocompletion. vmstat will show you the disk and other usage stats.
 
Old 09-30-2009, 01:07 PM   #11
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Original Poster
Rep: Reputation: 37
@ zhjim

i am so much thankful to you
it has been a lot of help to me.

but can you be more clear.......i mean what did the command do at last..
 
Old 09-30-2009, 06:24 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,300

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
http://linux.die.net/man/8/hdparm
Quote:
-T
Perform timings of cache reads for benchmark and comparison purposes. For meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading directly from the Linux buffer cache without disk access. This measurement is essentially an indication of the throughput of the processor, cache, and memory of the system under test. If the -t flag is also specified, then a correction factor based on the outcome of -T will be incorporated into the result reported for the -t operation.
-t
Perform timings of device reads for benchmark and comparison purposes. For meaningful results, this operation should be repeated 2-3 times on an otherwise inactive system (no other active processes) with at least a couple of megabytes of free memory. This displays the speed of reading through the buffer cache to the disk without any prior caching of data. This measurement is an indication of how fast the drive can sustain sequential data reads under Linux, without any filesystem overhead. To ensure accurate measurements, the buffer cache is flushed during the processing of -t using the BLKFLSBUF ioctl. If the -T flag is also specified, then a correction factor based on the outcome of -T will be incorporated into the result reported for the -t operation.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Very slow system response to user input, variable (and HIGH) CPU load on P4 HT system f4c3l355 Linux - General 3 09-23-2009 08:28 AM
Installing Hamachi - Bad Response from tuncfg DurkaAllah Linux - Software 0 01-18-2008 11:02 AM
LXer: Response to "Why Wal-Mart Linux PC Is A Bad Deal" article LXer Syndicated Linux News 0 11-15-2007 04:50 PM
Restarting X hangs system, no response at all rutgerw Linux - Software 7 11-29-2005 03:22 AM
Running a mixed system: Bad? How bad? haertig Debian 5 11-09-2005 01:54 PM


All times are GMT -5. The time now is 06:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration