Re: Linux and usb device drivers using functionfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 02, 2017 at 04:37:51PM +0000, andy_purcell@xxxxxxxxxxxx wrote:
> > What do you mean by "device app runs to completion"? What is the "device
> > app"? Is it the functionfs application you're talking about? And by "completion"
> > do you mean that it completely stops running or is it just sleeping waiting for
> > some input?
> 
> "device app runs to completion" means an executable on the embedded
> device starts, downloads a 70 Mbyte file from the PC to the device,
> then exits. It is not waiting for input. This device app, when
> running, consumes much memory and some of that memory is associated
> with root file system files mounted over NFS.

And where is your swap?  What happens if you just do not have swap at
all?

> A colleague claims mlockall() does not help, and says it is not a good
> idea anyway.

That's not true, have you tried it?

> I am afraid I have screwed up big time by using functionfs and am
> feeling pressure to move things into the Linux kernel.

If you disable swap, or use mlock, what happens?  You never answered
that...

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux