Red Hat :: Default File Descriptors
Sep 2, 2009Can someone please tell me how to permanently increase the default file descriptors limit on RHEL4?right now ulimit -n is 1024...I'd like to increase it to around 10000
View 1 RepliesCan someone please tell me how to permanently increase the default file descriptors limit on RHEL4?right now ulimit -n is 1024...I'd like to increase it to around 10000
View 1 RepliesI have run into a limit of 1024 file descriptors. I have searched a lot and have tried various solutions.How can the max file descriptors be set in Ubuntu?
View 1 Replies View RelatedFile descriptors with pipes-Can someone help me with this three situations, what would happen?
a) a process open the same file twice and read through two file descriptors
b) a process does fork and both parent- and child-processes read parallell
c) two processes opens and read from same file.
Its my Friend Problem .any one can tells that how can the file descriptors limits can be raise for the squid. In cache.log running out of file descriptors warning is coming.
View 3 Replies View RelatedOn linux, is there a way to count the number of file descriptors open to a some file?
View 1 Replies View RelatedI am using sabayon 5 - 32bit OS. I experience dullness and sluggish performance now and then.So number of free file descriptors is constantly zero , checked by utilising a while loop sleeping for 5 secs.would this be the root cause of the sluggishness I face in accessing application (media player)Also USB transfer is very very slow and sometimes it gets stuck
View 1 Replies View RelatedI have a weird problem with one of my servers. When system is booted and right before I should se "INIT 2.86 starting..." message, all the messages disappear. Only kernel messages get logged to console and later login prompt, but nothing in betweek (there are 20+ services starting successfully, just without emitting a single character).I checked /proc/PID/fd of the boot script (in my case called /etc/rc.d/rc.boot but that does not matter).
The only significant difference in hardware to other servers is that this one runs RV350 AP [Radeon 9600] graphic card.Now, my question is: where could those FDs go or why are they not opened?Does anyone have a clue about this, or a hint?
Is there any limitation on the number of file descriptors that can be opened. If yes how to find the maximum number of file descriptors that can be opened at a time.
View 2 Replies View RelatedI am quite confused about the following description on fork. Could you please explain it ?The child process shall have its own copy of the parent's file descriptors. Each of the child's file descriptors shall refer to the same open file description with the corresponding file descriptor of the parent.For example, I am opening a socket and then fork. Now, does the child have a separate socket or is shares it with the parent. Does I have any impact on using it in child?
View 2 Replies View RelatedI have problem with free allocated file descriptors it's always zero!
View 2 Replies View RelatedIs there already a program that reads multiple pipes or file descriptors and writes to the standard output (not splitting lines).Like cat, but reading all files simultaneously and preserving lines.It is needed to avoid coding of select/epoll loops or using multithreading in simple programs. Like "select loop for bash".
View 1 Replies View RelatedThis for Kernel 2.6.29.6. I'm trying to code a kernel module that displays process information.
how to count opened file descriptors per task. I have been able to write a module that lists all the current process names along with their pid number in /var/log/messages. Basically, I cycle through the ring of processes using the macro for_each_process(task) and printk the comm and pid of each task. I'm trying to see how many file descriptors each task has open. I've been reading up in books and all over the internet. At first I thought I needed to access max_fds under files_struct, but that just lists the maximum number of file descriptors that can be opened per task, which by default is set at 256. I then thought about counting the elements in the fd_array. But then I learned that every task's fd_array is initially set at 32. Now I know that I need to access open_fds of type fd_set * in files_struct. open_fds is a pointer to all the open file descriptors. The problem is that I don't know how to access a pointer of type fd_set.
Is there a good guide or book that really focuses on type fd_set and open_fds? Every book and resource I've read never really go into depth on this. relationship between files struct, open_fds, and the open file descriptors in task?
I have a second HD partitioned and formated to EXT4, the whole capacity. It was mounted to a directory in my home folder I'm getting an error that it cannot be mounted.
Running "dmesg | tail" i get this: (rigt now the HD is connected to the computer using a USB adaptor)
Code:
laptop:~> dmesg | tail
[ 375.821495] sd 9:0:0:0: [sdb] Write Protect is off
[ 375.821505] sd 9:0:0:0: [sdb] Mode Sense: 00 38 00 00
[ 375.821512] sd 9:0:0:0: [sdb] Assuming drive cache: write through
[code].....
i have an external harddrive, hooked up by usb. /dev/sdb it came as a fat drive (sdb1). when i realized, i had copied 250 gb to it already. so, i made a new ext3 (sdb2) partition, copied the data from the fat to ext3, and then deleted the fat drive and moved the ext3 it with gparted. it mounted fine after it was moved, but after i tried to resize it, which didn't work, it will not mount.
[Code]....
I have just installed SABnzb application in my home folder. The executable file is SABnzb.py When I run the command in the Konsole # python SABnzb.py I have this Quote: python: can't open file 'SABnzbd.py': [Errno 2] No such file or directory
View 5 Replies View RelatedI want to set default gateway permanently. There are two files and both have keyword "gateway":
Code:
I am new to fedora. I have searched quite a bit at this site but cannot find an answer: what is the default file system in fedora 13? (I am guessing ext4). Is there a setting that can be set when we are installing, to use another file system? Thanks.
View 1 Replies View RelatedWhere can i find the default ubuntu 10.04 theme file? (i need it so i can make my mandriva computer look like my Ubuntu computer)
View 4 Replies View RelatedI recently switched from Ubuntu server to Debian server, and I carried over many of the same configurations. This is pretty much a fresh install.
I cannot get the default gateway to stick by using the /etc/network/interfaces. I can ping my default gateway but nothing beyond it either by name or IP. code...
I would like the default gateway to stick between reboots. Could someone point me in the right direction?
I have opensuse 11.2 with KDE installed. Howto set Konqueror as default file manager?
View 5 Replies View RelatedI was messing with Openbox, LXDE, and Pekwm a couple days ago to see if I liked any of them, but I ended up coming back to gnome.
But it seems that, somehow, some of my preferred apps settings got wiped during this process.
The most annoying one, is I have no default application for archives (zip, tar.gz, etc). I can tell Ubuntu to "Open With..." and that works... but it doesn't stick.
How can I return this back to normal Ubuntu behavior?
UPDATE: It appears that nearly ALL my preferred application settings are gone. Pretty much everything except couple filetypes show up with the standard "file" icon and won't open unless I use "open with".
i initially installed ubuntu, working with gnome for a while. i now migrated to kde as i like it better. however, the kde session still has lots of the "old" file associations set as they are in gnome...
some examples? text files open in gedit, instead of kate pdfs open in "document viewer" instead of okular double clicking zip folder opens the "archiver" (gnome?), extracting an archive from the archiver and then pressing the "open folder" dialog after extracting has finished, opens nautilus (although dophin is the default program for inodes). etc.
i'm aware of the possibility to edit file associations, however thats a tedious thingy to do, if you want to get it complete... furthermore, the file association edit dialog has the "defaults" button disabled, hence my questions:
is there any way to "restore" the kde default file associations, just as i would have installed kubuntu initially? i don't want to reinstall just because of this.
I've been using 10.04 for a few months without any problems, but today, I tried to boot into Ubuntu and just got a black screen. I tried the tutorial on this site, and it worked.
I have to do this after every reboot unless I edit the /etc/default/grub file (the second part of the tutorial). I'm not sure how to go about doing this since the article is very vague.
I would appreciate it if someone could post the default configuration for this particular file:
usr/lib/libreoffice/program/sofficerc
It should be the default on your system if you did not change the splash screen.
I have a file server running a cronjob to reset file permissions on a regular basis. I was thinking, I wonder if there is a way to do the chmod and chown command in a single command, as I always have to do both on the same folder, the way that you can do "chown root:users Uploads" instead of having to do two separate commands for chown and chgrp.
Then I got to thinking, are these commands even necessary? Every file copied or moved into these folders by any user needs to be something like "chmod 750" and "chgrp root:users", so rather than running a cronjob to do these modifications at regular intervals, there ought to be a way to set the folder permissions so that any files contained within will have these permissions.
The problem arises because users create documents, then a supervisor with elevated privileges can move those documents into a shared folder, however the permissions are wrong, they are user1:user1 for the owner and group and the other users can't read the file until a cronjob changes the group to be users. This has actually been acceptable, but certainly there is a better way to do this.
my dad has been using Ubuntu for a few weeks now and likes it, however he's having some issues regarding read-only files. He's a doctor and frequently has to download word files to edit, however they always download as a read-only file. While this isn't particularly difficult to do, he finds doing it tiresome and because he isn't the most proficient PC user, may have difficulty with it when I return to school after the summer. I was hoping that there's some way to change the default settings so that all files downloaded are writeable.
Additionally, he has a number CD-RWs which he both retrieves files from and stores them to, however when trying to access these CDs he is told that they are read-only. Right clicking on the CD and trying to change the access permissions doesn't work (says that permissions can't be changed because the disc is read-only).
I'm trying to set krusader as my default file manager. I have gone into System Settings > Default Applications > File Manager and changed Dolphin to Krusader.
When I plug in a flash card the Device Notifier pops up and I click on the device inserted. The choices I get are Digikam, Dolphin, and Do Nothing.
I click on "Dolphin" (hard coded it appears) and it looks like Krusader tries to start. I get the cursor with the bouncing krusader mini-icon and an entry in the panel, but then nothing happens. It all goes away and I'm left with a blank screen (wallpaper, actually).
I've chosen Krusader from the menu, so presumably the arguments to it are good. I have KDE 4.3.3 and krusader 2.0.0.
How to properly set some entries in:
$HOME/.config/mimeapps.list
so that:
*.odb files are opened by default with libreoffice base
*.org files (just org files not plain text files) are opened by default with emacs
For some reason I can not figure out how to proceed.
As far as I know - i.e. for what I have been reading in the documentation - the default application for a given MIME-type is specified by writing into the group [Default Applications] in the mimeapps.list file
My configuration is the following:
- 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux
- gnome desktop
Does anyone know why files in /boot are world-readable (particularly the initial ram disk)? I'm not an expert, but I would not expect anyone except root or a sudoer to have the ability to read these files.
View 5 Replies View RelatedHow do I change the default file associations in F15/gnome 3? My system is currently set to open .tex files with emacs. But I prefer TeXworks, and while TeXworks shows up in the "Open With" menu, it would be convenient if double-clicking on a tex file opened it in TeXworks. In gnome2, the "Open with-->Other application" option let me select the default program associated with a particular type of file, but this functionality seems to be gone in Gnome 3. Do I have to edit some config file?
View 5 Replies View Related