Its not the same computing size especially if so many files than just list...Because it after has to add total of each subdirectory etc...
What is /data? a file system? in which case why not just
and where it gets complicated is if you have NFS mounted on top...
Hi I am trying to find out the best way to find out how long a command takes to run in miliseconds ..
Is there such a way of doing this in Unix ?
Thanks (3 Replies)
After my previous thread, I think I found out what causes the long delays.
I run this program on several Linux computers, and the sometimes (after the file with the arrays becomes big) the fwrite takes between 100 ms to 900 ms.
This is very bad for me, as I want a timer to halt each 30 ms.... ... (5 Replies)
Hello,
I have a C program that takes anywhere from 5 to 100 arguments and I'd like to run it from a script that makes sure it doesnt take too long to execute. If the C program takes more than 5 seconds to execute, i would like the shell script to kill it and return a short message to the user. ... (3 Replies)
Hello,
like the title says, how can i measure the time it takes to load a module in Linux, and how how can i measure the time it takes to load a statically compiled module.
/Best Regards Olle
---------- Post updated at 01:13 PM ---------- Previous update was at 11:54 AM ----------
For... (0 Replies)
Dear experts
I have a 200MG text file in this format:
text \tab number
I try to sort using options -fd and it takes very long! is that normal or I can speed it up in some ways?
I dont want to split the file since this one is already splitted.
I use this command: sort -fd file >... (12 Replies)
Hi,
I wish to check the return value for wget $url.
However, some urls are designed to take 45 minutes or more to return.
All i need to check if the URL can be reached or not using wget.
How can i get wget to return the value in a few seconds ? (8 Replies)
Hi,
I am running a ssh connection test in a script, how can I add a timeout to abolish the process if it takes too long?
ssh -i ~/.ssh/ssl_key useraccount@computer1
Thank you.
- j (1 Reply)
Hi,
Below is my find command
find /opt/app/websphere -name myfolder -perm -600 | wc -l
At time it even takes 20 mins to complete.
my OS is : SunOS mypc 5.10 Generic_150400-09 sun4v sparc SUNW,T5440 (10 Replies)
Hi,
I am trying to search for a Directory called "mont" under a directory path "/opt/app/var/dumps"
Although "mont" is in the very parent directory called "dumps" i.e "/opt/app/var/dumps/mont" and it can never be inside any Sub-Directory of "dumps"; my below find command which also checks... (5 Replies)
Hi,
I have a lengthy script which i have trimmed down for a test case as below.
more run.sh
#!/bin/bash
paths="allpath.txt"
while IFS= read -r loc
do
echo "Working on $loc"
startdir=$loc
find "$startdir" -type f \( ! -name "*.log*" ! -name "*.class*" \) -print |
while read file
do... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT NETBSD
vfs_hooks
VFS_HOOKS(9) BSD Kernel Developer's Manual VFS_HOOKS(9)NAME
vfs_hooks, vfs_hooks_unmount -- VFS hooks interface
SYNOPSIS
#include <sys/param.h>
#include <sys/mount.h>
void
vfs_hooks_unmount(struct mount *mp);
DESCRIPTION
The VFS hooks interface provides a way for different kernel subsystems to attach custom functions to specific VFS operations. This enforces
code separation by keeping the VFS's core sources uncluttered and makes all subsystem functionality reside in a single place. As an example,
this interface is used by the NFS server code to automatically handle the exports list for each mount point.
Hooks are described by a struct vfs_hooks object, as seen below:
struct vfs_hooks {
int (*vh_unmount)(struct mount *);
};
For simplicity, each field is named after the VFS operation it refers to. The purpose of each member function, alongside some important
notes, is shown below:
vh_unmount(mp)
This hook is executed during the unmount process of a file system.
For more information about the purpose of each operation, see vfsops(9). Note that any of these fields may be a null pointer.
After the definition of a struct vfs_hooks object, the kernel has to add it to the vfs_hooks link set using the VFS_HOOKS_ATTACH(struct
vfs_hooks *) macro.
Please note that this interface is incomplete on purpose to keep it in its smallest possible size (i.e., do not provide a hook that is not
used). If you feel the need to hook a routine to a VFS operation that is not yet supported by this interface, just add it to the files
described in CODE REFERENCES.
FUNCTIONS
The following functions are provided to the VFS code to run the hooked functions:
vfs_hooks_unmount(mp)
Runs all hooks for the VFS unmount operation. Given that these operations shall not fail, it returns void.
CODE REFERENCES
The VFS hooks interface is implemented within the files sys/kern/vfs_hooks.c and sys/sys/mount.h.
SEE ALSO intro(9), vfs(9), vfsops(9)HISTORY
The VFS hooks interface appeared in NetBSD 4.0.
BSD September 23, 2005 BSD