Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th December 2011, 10:39 AM
Mariusz W Offline
Registered User
 
Join Date: Nov 2007
Location: Berkeley, California
Posts: 690
linuxfirefox
select(1, [0], NULL, [0], {0, 0}) = 0 (Timeout)

On a new Asus U46E (i5-2430M CPU @ 2.40GHz, 8GB RAM) I continue observing frequent system "hiccups" that manifest themselves as 3-5 seconds delays in performing even the simplest operations like ls on a small directory, or a simple editing operation in vim.

All of this happening independently of my Desktop Environment, it happens also in Linux console, though it seems less severe.

This behavior is really annoying when I edit a file with vim. I started to execute vim editing sessions under strace. Going back and forth between what I observed while editing, and the corresponding strace logs, I decided to perform the following experiment: I opened (in a terminal) a small text file, and pasted a short text selection (20 short lines of text; I selected the text in a browser before firing strace). The system hesitated for good 2-3 seconds before the pasted text appeared. I saved the file and exited. On my previous attempt of doing exactly the same the system hesitated for 4-5 seconds but unfortunately on that occasion I didn't run the process under strace.

The whole operation took just a few seconds: from opening the file in vim, pasting the contents of the buffer, to saving and exiting.

Then I opened the log: the bulk of the log file consisted of 3191 lines calling select(...) of which exactly 3111 were like the line in the thread title:
Code:
select(1, [0], NULL, [0], {0, 0})       = 0 (Timeout)
Rarely in between interspersed were the 108 lines
Code:
write(...)
with what looked like bytes of the text selection that was being pasted into.

I haven't noticed anything else in the log left by strace which would catch my attention.

Reading select()'s man page, as well as google-searching provided me with a basic introduction to the role select() plays in monitoring file descriptors. I am not sure at all whether those thousands of select(1, ... (Timeout) lines are an indication of anything going wrong, except possibly that for some reason some basic operations on open file descriptors are painfully slow on my brand new Asus, due to some scheduling issues or anything else.

For your information, the system was basically idle when I was performing all my tests. The operating system is 64 bit Fedora 16, fresh install peformed almost 4 weeks ago. No tweaks, no risky customizations. Basically, a default GNOME installation, though most of the time I am in fluxbox or in a console.

I would greatly appreciate anybody's ideas that could contribute to resolution the situation that makes using Fedora 16 on this laptop such a frustrating experience: the contrast between great specs and miserable performance cannot be greater.

Last edited by Mariusz W; 4th December 2011 at 11:36 AM.
Reply With Quote
  #2  
Old 5th December 2011, 05:19 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,619
linuxfedorafirefox
Re: select(1, [0], NULL, [0], {0, 0}) = 0 (Timeout)

I don't know if this will help, but I always mount my ext[234] partitions with the noatime option, since I don't need to update inode access times constantly (and unless you are running some kind of server with specialized auditing requirements you won't need to do so either). For example, my /etc/fstab has these entries:
Code:
UUID=<something> /                       ext4    defaults,noatime        1 1
UUID=<something> /boot                   ext3    defaults,noatime        1 2
Disabling those access time writes may help your laptop's performance.
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
Reply With Quote
Reply

Tags
null, select, select1, timeout

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
F13 PulseAudio null sink, null source coabiguy Hardware & Laptops 0 1st October 2010 07:49 PM
sec=null on nfsroot hsasshofer Servers & Networking 1 6th January 2007 03:07 PM
.bash_history gone > /dev/null Xeno Security and Privacy 4 29th August 2004 09:36 PM


Current GMT-time: 14:17 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat